Codeigniter电子邮件不发送特定情况

时间:2012-02-28 11:43:13

标签: codeigniter codeigniter-2

我有发送电子邮件的功能

奇怪的是,它适用于特定情况,而不适用于其他情况

这是调试器日志

SUCCESS

Your message has been successfully sent using the following protocol: mail

From: "Reset Password" 
Return-Path: 
Reply-To: "sender@email.com" 
X-Sender: sender@email.com
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <xxx@email.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
=?utf-8?Q?Password_Reset?= ......

FAILED

Your message has been successfully sent using the following protocol: mail<br /><pre>
 From: "Registration" <sender@email.com>
Return-Path: <sender@email.com>
Reply-To: "sender@email.com" <sender@email.com>
X-Sender: sender@email.com
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <xxx@email.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
=?utf-8?Q?Confirm_Registration?= .....

在失败的一个中看到我在某些地方重复了发件人电子邮件,并且它设置在回复路径中,该路径不在成功发送的电子邮件中。还有一些HTML标签在其中不知道为什么?

1 个答案:

答案 0 :(得分:1)

我在项目中也遇到了这个问题,我不确定它是否适合您,或者检查您的收件人电子邮件地址是否有效。