0

嗨,我正在使用 phpmailer 来接收来自我的网站联系表的消息。电子邮件是必填字段。我收到所有消息,即使来自虚假电子邮件地址,除了 gmail。当用户在电子邮件字段中插入 gmail 地址时,联系表单会响应消息已发送,但用户在其垃圾邮件 gmail 文件夹中收到以下错误:

The original message was received at Tue, 24 Sep 2013 12:08:21 -0700
from localhost [127.0.0.1]

----- The following addresses had permanent fatal errors -----
  <info@mywebsitename.com>
  (reason: 553 sorry, your mail was administratively denied. (#5.7.1))

----- Transcript of session follows -----
  ... while talking to relay-hosting.secureserver.net.:
  MAIL From:<usernamemail@gmail.com> SIZE=1543 BODY=8BITMIME
  <<< 553 sorry, your mail was administratively denied. (#5.7.1)
  501 5.6.0 Data format error

Reporting-MTA: dns; xxxxxxx.xxx.xxxx.xxxx.secureserver.net
Received-From-MTA: DNS; localhost
Arrival-Date: Tue, 24 Sep 2013 12:08:21 -0700
Final-Recipient: RFC822; info@mywebsitename.com
Action: failed
Status: 5.1.3
Diagnostic-Code: SMTP; 553 sorry, your mail was administratively denied. (#5.7.1)
Last-Attempt-Date: Tue, 24 Sep 2013 12:08:22 -0700

好吧,我的服务器似乎拒绝发送来自 gmail 用户的电子邮件。但为什么?

谢谢

4

1 回答 1

0

好的,我正在回答我的问题。

是的,我的服务器(godaddy)阻止了 gmail 地址。

由于垃圾邮件(正如他们所说),它似乎也阻止了 yahoo、aol、live、hotmail 和其他一批不是“拥有”注册域的人。

好吧,我稍微改变了标题。

$mail->SetFrom = 'info@myregistereddomain.com'
$mail->AddReplyTo( $email , $name );
$mail->AddAddress( $toemail , $toname );

现在它的工作

于 2013-09-25T03:22:37.740 回答