0
我使用php脚本发送电子邮件。我想要显示用户名和从他的电子邮件ID中回复path.I'm使用下面的代码。我使用HTML信息。所有的发送电子邮件时出错
Error.: It is not showing the from in email , showing unknow sender.
<?php
$name="TEST TEST";
[email protected]
$msg='<div>hello dfjdk faofd akfda </div>';
$to =$email;
$subject = $ab." Return SMS";
$message = $msg;
$from1 = '[email protected]';
$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);
?>
如果你是真正张贴您收到 – Pankrates
错误'$from1='[email protected]“这可能是有益的;' –
它不显示来自电子邮件,显示未知发件人。 – user1734190