Menu

Email From Field

Help
Rob
2007-12-15
2013-06-03
  • Rob

    Rob - 2007-12-15

    I saw a past post regarding changing the default From field of the emialed form.  I too would like to do something similar and believe it can be done but I cant quit figure out the syntax to make it work.

    I want to change the "php-Snow Removal Time Sheets" to the data that was selected in the drop down box 'Contractor'
    This way at a glance without opening the email I will see who submitted their forms. At times I may get 50 to 100 emails over a weekend.  With this, I can set a rule in my outlook to send the forms from each contractor to their respectable outlike mail folder.

    mail("rob@perficut.net","php-Snow Removal Time Sheet","Form data:

    Thanks for all your help. Great Form! Keep up the good the work.

     
    • TNTEverett

      TNTEverett - 2007-12-17

      http://us3.php.net/manual/en/function.mail.php

      You will need something like this:
      mail("rob@perficut.net",$contractor,"Form data:

      From the look of it you are using version 3.0 and the variables are not strainght forward but look more like this:
      $_POST['field_1']

      You will just need to identify the variable with the information you want as the subject and make the appropriate change in the processor.php file. 
      Let me know if you still need help.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.