我正在尝试将Code Igniter的电子邮件库连接到我通过godaddy创建的电子邮件帐户。我正在尝试通过SMTP主机发送邮件。据我所知,我的所有信息都是正确的,因为调试提到电子邮件正在发送。我想知道我的SMTP标头中是否遗漏了任何东西,以便在收件人的邮件服务器上正确接收。这是调试:
hello: 250-p3plsmtpa06-01.prod.phx3.secureserver.net hello [184.168.27.183], secureserver.net
250-HELP
250-AUTH LOGIN PLAIN
250-SIZE 31457280
250-PIPELINING
250-8BITMIME
250 OK
from: 250 sender ok
to: 250 recipient ok
data: 354 enter mail, end with "." on a line by itself
250 Pdky1o0073x2RKs01 mail accepted for delivery
quit: 221 p3plsmtpa06-01.prod.phx3.secureserver.net closing connection
Your message has been successfully sent using the following protocol: smtp
User-Agent: CodeIgniter
Date: Mon, 7 Jul 2014 18:44:58 -0700
From: "Jumpstart Study" <noreply@jumpstartstudy.com>
Return-Path: <noreply@jumpstartstudy.com>
To: shock_x_trooper@hotmail.com
Subject: =?utf-8?Q?Test_Email?=
Reply-To: "noreply@jumpstartstudy.com" <noreply@jumpstartstudy.com>
X-Sender: noreply@jumpstartstudy.com
X-Mailer: CodeIgniter
X-Priority: 2 (High)
Message-ID: <53bb4d1a25b3f@jumpstartstudy.com>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="B_ALT_53bb4d1a25b81"
This is a multi-part message in MIME format.
Your email application may not support this format.
--B_ALT_53bb4d1a25b81
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
This is a test message. Please disregard this email.
--B_ALT_53bb4d1a25b81
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><head></head><body>This is a test message. Please disregard this emai=
l.</body></html>
--B_ALT_53bb4d1a25b81--
250 sender OK and 250 recipient OK
会告诉我两封电子邮件都有效吗?事实上,我收到了成功消息(通过调试的一半)意味着电子邮件已成功发送。检查我的GoDaddy继电器,每次我调用我的邮件功能时它们都会递增。
有什么我想念的吗?我的标题是否以任何方式不正确,这会阻止电子邮件到达目的地?
此外,可以在短时间内多次调用调试,最终使邮件服务器将许多传入的电子邮件解释为垃圾邮件或重复邮件,而忽略后续邮件?
答案 0 :(得分:0)
根据您所描述的内容,我怀疑您的电子邮件是在目的地进行静默过滤,也许您的原始IP地址位于默认黑名单中,或者您的DNS并非全部设置为匹配的反向&amp;转发条目。你可以在这里查看你的IP地址,作为初学者,http://www.spamhaus.org/lookup/
虽然如果godaddy提供smtp并且他们正在接受你的消息传递,也许这是他们的地址被过滤。
您是否尝试过发送到您可以控制的其他地址?