当用户收到我网站通过PHP发送的邮件时,我想在他们的收件箱中展示一个个人资料图片。
下面的图片显示第一封邮件来自我的网站,而第二封则是我想要的样子。
这是我的PHP邮件函数:
$emailTo=$_POST['emialNewPass'];
$emailSubject="Recovery";
$emailLoctuz="noreply@loctuz.com";
$message="msg";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// En-têtes additionnels
$headers .= 'To: '.$emailTo."\r\n";
$headers .= 'From: Loctuz Security <'. $emailLoctuz . '>' ."\r\n";
if(@mail($emailTo,$emailSubject,$message, $headers))
{
?><script>window.location = "?sent";</script><?php
}