This is the code I am using and below is the result I am getting. Please can anyone throw any light on it.
Waynec
- - - - - - - - - -
# Use the CGI unit
use CGI;
# Get the values from the form
$form = new CGI;
$subject="MOT Booking";
$tome="mot\@station-garage.net";
$fromme="Customer request";
$server="smtp.station-garage.net";
$message=$form->param('message');
$server="smtp.station-garage.net";
$make=$form->param('make');
$model=$form->param('model');
$regnumber=$form->param('regnumber');
$fuel=$form->param('fuel');
$lastname=$form->param('lastname');
$firstname=$form->param('firstname');
$address1=$form->param('address1');
$address2=$form->param('address2');
$city=$form->param('city');
$county=$form->param('county');
$postcode=$form->param('postcode');
$month=$form->param('month');
$date=$form->param('date');
$year=$form->param('year');
$time=$form->param('time');
$std=$form->param('std');
$number=$form->param('number');
$email=$form->param('email');
$lt='<';
$gt='>';
# Save the message into a text file
open (messtxt,">message.txt"
print messtxt ($make, "\n"
print messtxt ($model, "\n"
print messtxt ($regnumber, "\n"
print messtxt ($fuel, "\n"
print messtxt ($lastname, "\n"
print messtxt ($firstname, "\n"
print messtxt ($address1, "\n"
print messtxt ($address2, "\n"
print messtxt ($city, "\n"
print messtxt ($county, "\n"
print messtxt ($postcode, "\n"
print messtxt ($month, "\n"
print messtxt ($date, "\n"
print messtxt ($year, "\n"
print messtxt ($time, "\n"
print messtxt ($std, "\n"
print messtxt ($number, "\n"
print messtxt ($email, "\n"
close messtxt;
- - - - - - - - - - - -
This is what I am getting back when sending the form and it is not sending the data to the mail server.
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Sending message.txt to mot@station-garage.net
Subject:MOT Booking
Login name is Customer request
blat.exe message.txt -s "MOT Booking" -t "mot@station-garage.net" -f "Customer request" -server smtp.station-garage.net" Done.Mail sent to .
Waynec
- - - - - - - - - -
# Use the CGI unit
use CGI;
# Get the values from the form
$form = new CGI;
$subject="MOT Booking";
$tome="mot\@station-garage.net";
$fromme="Customer request";
$server="smtp.station-garage.net";
$message=$form->param('message');
$server="smtp.station-garage.net";
$make=$form->param('make');
$model=$form->param('model');
$regnumber=$form->param('regnumber');
$fuel=$form->param('fuel');
$lastname=$form->param('lastname');
$firstname=$form->param('firstname');
$address1=$form->param('address1');
$address2=$form->param('address2');
$city=$form->param('city');
$county=$form->param('county');
$postcode=$form->param('postcode');
$month=$form->param('month');
$date=$form->param('date');
$year=$form->param('year');
$time=$form->param('time');
$std=$form->param('std');
$number=$form->param('number');
$email=$form->param('email');
$lt='<';
$gt='>';
# Save the message into a text file
open (messtxt,">message.txt"
print messtxt ($make, "\n"
print messtxt ($model, "\n"
print messtxt ($regnumber, "\n"
print messtxt ($fuel, "\n"
print messtxt ($lastname, "\n"
print messtxt ($firstname, "\n"
print messtxt ($address1, "\n"
print messtxt ($address2, "\n"
print messtxt ($city, "\n"
print messtxt ($county, "\n"
print messtxt ($postcode, "\n"
print messtxt ($month, "\n"
print messtxt ($date, "\n"
print messtxt ($year, "\n"
print messtxt ($time, "\n"
print messtxt ($std, "\n"
print messtxt ($number, "\n"
print messtxt ($email, "\n"
close messtxt;
- - - - - - - - - - - -
This is what I am getting back when sending the form and it is not sending the data to the mail server.
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Sending message.txt to mot@station-garage.net
Subject:MOT Booking
Login name is Customer request
blat.exe message.txt -s "MOT Booking" -t "mot@station-garage.net" -f "Customer request" -server smtp.station-garage.net" Done.Mail sent to .