PDA

View Full Version : Need php help fast!


DarknessDivine
Thu 4th Nov '04, 10:53am
I am trying a simple mail php script to send an auto reply via a form everything works the mail gets sent once the form is filled out problem is the from path I have set up like this mail ("myemail@myemailadress.com", "A letter was requested", "$name just
used the form\n\n for $chname from $email.") ;
But when the email comes in the from adress is exactly this nobody@myhostingprovider.com Why is this? What can I do to get it to show the from feild the way I requested?

daemon
Thu 4th Nov '04, 11:50am
You need to specify the "From" header.

Put the following as the last parameter:

"From: Your Name Here <email@example.com>"

Stadler
Thu 4th Nov '04, 11:51am
Perhaps the following is useful: http://de2.php.net/manual/en/function.mail.php#AEN58220 (/me points at example 3)