我有這個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上可以看到,你可以在發件人框中看到它 - 如何在沒有主機的情況下刪除它併發送?
發佈您的代碼? –