2011-09-09 21 views
1

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

+0

發佈您的代碼? –

回答

1

這就是「內經yourdomainhere.com」

的意圖,我不相信你可以改變它,除非您在網站上運行一個自定義郵件服務器(可能無法共享主機上)

無論如何,您的問題可能會更適合ServerFault,因爲PHPMailer不是問題。

+0

我也有一個專用的服務器,可以做什麼來發送電子郵件作爲合法的沒有主機? – Tzvi

+0

我不能用反向DNS修復它嗎? – Tzvi

+0

看起來你可以。就像我說的:serverfault是去的地方:http://serverfault.com/questions/30188/how-do-i-configure-reverse-dns-for-a-smtp-server – Sum

相關問題