I would like to use phpFormGenerator to collect contact information from my website, and Email the contact info to an autoresponder(hostgator)and have the autoresponder reply with an email to the email address collected from the website form. I have it setup, however, the email sent from the phpFormGen has phpformgen@sourceforge.com(or something similar) as the sender of the form mail. So the autoresponder sends the mail to the wrong place. Is there a work around for using this program with an autoresponder? Or do I need to address this problem differently.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would like to use phpFormGenerator to collect contact information from my website, and Email the contact info to an autoresponder(hostgator)and have the autoresponder reply with an email to the email address collected from the website form. I have it setup, however, the email sent from the phpFormGen has phpformgen@sourceforge.com(or something similar) as the sender of the form mail. So the autoresponder sends the mail to the wrong place. Is there a work around for using this program with an autoresponder? Or do I need to address this problem differently.
Find this line in the process.php file:
mail("to_email@domain","Form Submitted at your website",$message,"From: phpFormGenerator");
Change "From: phpFormGenerator"
to
"From: from_email@domain"
This should result in an email that is "sent" from the user email defined by "from_email@domain".
Additional reference material:
http://www.php.net/manual/en/function.mail.php