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 :?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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">
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 :?
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">