2011-09-09 17 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

相关问题