I’m sending the email using the php script.I wanna to display the user name in from and his email id in reply path.I’m using the following code.I’m using the html in message.
Error.: It is not showing the from in email , showing unknow sender.
<?php
$name="TEST TEST";
$from1=test@gmail.com
$msg='<div>hello dfjdk faofd akfda </div>';
$to =$email;
$subject = $ab." Return SMS";
$message = $msg;
$from1 = 'test@yahoo.com';
$headers = "From:$name\r\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= 'Content-Type: text/html; charset="iso-8859-1"'."\n";
$headers .= "Reply-To: $from1\r\n";
mail($to,$subject,$message,$headers);
?>
Give this one a try: