Error in sending email
<p>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.</p>

<pre><code> Error.: It is not showing the from in email , showing unknow sender.


  &lt;?php  
 $name="TEST TEST";
 $from1=test@gmail.com
 $msg='&lt;div&gt;hello dfjdk faofd akfda &lt;/div&gt;';
 $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);
  ?&gt;
</code></pre>
