Menu

Using the Email Field for the 'From'

Help
pheelup
2005-11-25
2013-06-03
  • pheelup

    pheelup - 2005-11-25

    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!

     
    • TNTEverett

      TNTEverett - 2005-11-25

      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. 

       
      • Newathis

        Newathis - 2006-08-21

        worked perfect thanks tnt.

        very simple

         

Log in to post a comment.