I have a form mailer that works fine except that when it sends out an email, the FROM address is this:
myaddress@linhost207.mesa1.secureserver.net
Is there a way I can get the FROM address to display the users correct email address?
code for mailer:
<?php
$msg = ' mail message goes here
along with HTML code
';
$msg .= "\n";
//set up the mail
$recipient = "my-email@example.com";
$recipient2 = "work-email@example.com";
$subject = "Free Estimate Requested";
$mailheaders = "From: ace-plumbing.com<estimate@ace.com> \n";
$mailheaders .= "Reply-To: $_POST[email]\n\n";
$mailheaders = 'MIME-Version: 1.0' . "\r\n";
$mailheaders .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
//send the mail
mail($recipient, $subject, $msg, $mailheaders);
mail($recipient2, $subject, $msg2, $mailheaders);
//end of PHP code
?>
thanks
you guys are great