Menu

Reply-address

Help
2006-03-29
2013-06-03
  • 5dollarshake

    5dollarshake - 2006-03-29

    I love the script and everyhting works fine, exept for the reply-adres. When i receive a mail submitted by someone using the formmail online. I can't hit reply direct because it doesn't reply to the provided emailadres. Is there a solution for it?

    For example where variable $emailaddress is the Reply to address?

     
    • TNTEverett

      TNTEverett - 2006-03-29

      Yes.
      By default your process.php file mail function looks like this:
      mail("youremail@yourdomain.com","Form Submitted at your website",$message,"From: phpFormGenerator");

      Note the From field.  Change this to the reply email address you wish to use. 
      If you want it to be the submitter's address you will have to ad the variable name that holds this address. 

       
    • 5dollarshake

      5dollarshake - 2006-03-29

      Okay i understand that, tried it as well, but iam not good with PHP. How do i put the variable in the from field?

      mail("youremail@yourdomain.com","Form Submitted at your website",$message,"From: $emailaddress"); for example?

       
      • TNTEverett

        TNTEverett - 2006-03-29

        If you have a line in the process.php file that looks like this:
        pt_register('POST','emailaddress');
        then yes, your modification should work. 
        I'm not 100% sure about the double quotes, you may want to use single quotes.  Let me know if you still have trouble.  I can look at your process.php file and test the correct method before sending you the modification you need. 

         
    • ilterocktive

      ilterocktive - 2006-04-25

      the 1 with double quotes works tnt...
      Thanks for your valuable submissions, i use them a lot.

       

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.