Im using the following for html mail().
It works except when you read the mail in "from" is says:
account_username@webhoster.com
Rather than the persons email who submited the form, also its the same when reply is hit.
Code: Select all
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "$name <$email>";
$to = 'Bla<bla@bla.com>';
$subject = "Re: Online Registration";
$message = '<font size="2" face="tahoma">Hi Admin<br><br>
Record Id: '.$id.'</font>';
mail($to, $subject, $message, $headers);Rather than having my username@mywebhoster.com?
Thanks