etheracide
12-11-2002, 06:41 PM
I have used the following code in all of my scripts which have worked fine on the others servers I have tried. But when a form is submitted with this script in the action, the resulting page that my script creates has "Recipients must be specified Recipients must be specified".
Please note that this isn't the entire script, but the rest of it generate a thank you html page.
######### CODE##########
open (MAIL,"|/usr/sbin/sendmail");
print MAIL "To: $email\n";
print MAIL "From: $mail\n";
print MAIL "Subject: Thank you for contacting us\n";
print MAIL "Thank you $name for contacting us.\n\n";
print MAIL "Here was the message you sent us: $message\n\n";
print MAIL "Your message has been received and we'll get back to you as soon as we can\n";
print MAIL "\n\n";
print MAIL "Sincerely,\n";
print MAIL "The President\n";
print MAIL "www.mydomain.com\n";
close (MAIL);
########################
The scalars $email and $mail are set by the script. $mail is the address for the admin which is taken from the admin settings. $email is the address that the user enters on the previous form that sent the info to the script.
This has worked on every other server I have tried, but not on this one.
My host will not give me satisfactory help.
Thank you.
Please note that this isn't the entire script, but the rest of it generate a thank you html page.
######### CODE##########
open (MAIL,"|/usr/sbin/sendmail");
print MAIL "To: $email\n";
print MAIL "From: $mail\n";
print MAIL "Subject: Thank you for contacting us\n";
print MAIL "Thank you $name for contacting us.\n\n";
print MAIL "Here was the message you sent us: $message\n\n";
print MAIL "Your message has been received and we'll get back to you as soon as we can\n";
print MAIL "\n\n";
print MAIL "Sincerely,\n";
print MAIL "The President\n";
print MAIL "www.mydomain.com\n";
close (MAIL);
########################
The scalars $email and $mail are set by the script. $mail is the address for the admin which is taken from the admin settings. $email is the address that the user enters on the previous form that sent the info to the script.
This has worked on every other server I have tried, but not on this one.
My host will not give me satisfactory help.
Thank you.