I have a web form which automatically sends me an email the moment someone fills it but the email that i get has a from address @server20.hosthat.com, i need to change that to our domain address as i want to send a copy of this mail to the person filling the form as well.
check help files at your host server. usually they have a preferred way to address the from section of the email code.
sometimes it can be “FROM: [email protected]”
or sometimes it has to be just “me@mydomain”
and some places you can do full headers:
[php]
$headers = ‘From: [email protected]’ . “\r\n” .
‘Reply-To: [email protected]’ . “\r\n” .
‘X-Mailer: PHP/’ . phpversion();
[/php]
check if your host has help files and look it up or ask their support to see they will tell you how to address the from section of your php mail script.