Forum Moderators: coopster & phranque

Message Too Old, No Replies

Autoresponder help

Can anyone help?

         

cordless kettle

11:32 am on Jul 17, 2005 (gmt 0)

10+ Year Member



I am looking for a script which will automatically send out an email to each user who has filled in a form on my website.

I currently use the 'Formmail' script to send the original form results to my mail address, however I don't fancy the prospect of individually sending back a personal email to everyine who has filled in the form.

Any pointers would be most welcome.

cordless kettle.

WWMike

7:49 pm on Jul 17, 2005 (gmt 0)

10+ Year Member



If all visitors will receive the same exact message just add the following code to the end of your script, replacing the $Recipient variable with whatever it is in your script:

open (SENDMAIL, "¦ /usr/sbin/sendmail -t");
print SENDMAIL "Subject: Autoresponse\n";
print SENDMAIL "To: $Recipient\n";
print SENDMAIL "From: $ENV{SERVER_ADMIN}\n\n";
print SENDMAIL "Thank you for filling out my form\n\n";
close (SENDMAIL);