我有这个PHPMailer的被爆破电子邮件和recieving的电子邮件时,发件人是:[email protected]通过web258.opentransfer.com(我的主机)通过php邮件发送邮件我在发件人中收到“myemail via host.blabla”,如何删除它?
这就是我的代码:
// Real Email Blast:
$mail = new PHPMailer();
$mail->From = "[email protected]";
$mail->FromName = "myname";
$mail->AddAddress($email, $name);
$mail->Subject = $htmlTitle = stripslashes($reSubject);
$mail->Body = $htmlBody = "
<div style='direction: rtl; text-align: right;'>
".stripslashes($reEmailContents)."
</div>";
// Setting plain text:
$text_body = $htmlTitle."
".strip_tags($htmlBody);
$mail->AltBody = $text_body;
if (!$mail->Send()) {
// Email failed error, resending user to landing page:
$error .= "<span style='color: #D20005;'>- Failed sending email to: ".$email." (".$name.")</span><br>";
}
这当你访问电子邮件本身时,尤其是在Outlook和Gmail上可以看到,你可以在发件人框中看到它 - 如何在没有主机的情况下删除它并发送?
发布您的代码? –