I have the form working fine but I am wondering how to change the recipient email so that the 'From' is based on the Email field on my form. For example, if someone fills out the Email field as john.smith@url.com, the email that is sent comes from john.smith@url.com.
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Look in the process.php file.
mail("email@domain","Form Submitted at your website",$message,"From: phpFormGenerator");
Change this part "$message,From: phpFormGenerator") to something like this
$message,$emailaddress). The $emailaddress has to be the same variable as you defined for your form.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the form working fine but I am wondering how to change the recipient email so that the 'From' is based on the Email field on my form. For example, if someone fills out the Email field as john.smith@url.com, the email that is sent comes from john.smith@url.com.
Thanks!
Look in the process.php file.
mail("email@domain","Form Submitted at your website",$message,"From: phpFormGenerator");
Change this part "$message,From: phpFormGenerator") to something like this
$message,$emailaddress). The $emailaddress has to be the same variable as you defined for your form.
worked perfect thanks tnt.
very simple