Menu

Mailheader display my server on `from`

Help
itaf
2005-02-26
2013-06-03
  • itaf

    itaf - 2005-02-26

    The file process.php has a code:
    mail("ndiay@expertnet.com.br","FORM: Form Web",$message,"From: FormWeb ");

    When I open the email received from the user who filled the form, the email displays the sender from as  FormWeb@myserver.com instead of showing me the name of the sender or the email address. In the form I defined the fields of the name and the email.
    I do not want to see FormWeb@myserver.com but the name of the sender. How can I alterate the code from process.php in order to see the name of the sender in the FROM item :?

     
    • germanic42

      germanic42 - 2005-02-26

      In the line of the the process.php file that starts with "mail", change the last item, "From: mem FormWeb@myserver.com" to read "From: $Email" (if $Email is the variable assigned to your email line, if not just change it to whatever you called your email line).  You can also change your subject line. 

      The line in the form is: <"To", "subject", "message", "from">

       

Log in to post a comment.