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