因此,代码:为什么电子邮件没有到达目的地(笨)
$this->load->library('email');
$this->email->from('[email protected]', 'mysite');
$this->email->to($email);
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();
我不明白为什么没有错误,当我发送一封电子邮件,但是当我检查我的电子邮件中,没有电子邮件,所以它看起来像电子邮件没有达到他的目的地,我使用CodeIgniter,也许我需要添加一些其他设置来解决这个问题?请帮忙!!
PS:我也用本地mail()函数,反正邮件不来,我检查它在Gmail中
Your message has been successfully sent using the following protocol: mail
From: "mysite"
Return-Path:
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
=?utf-8?Q?Email_Test?=
Testing the email class.
是有什么错吗?
检查垃圾邮件呢! – Prasanth 2012-08-06 04:48:36
检查您的邮件服务器的日志,以了解在PHP移交电子邮件后会发生什么。请记住,PHP实际上并不会将电子邮件发送到远程邮箱/邮件服务器,它只是将它交给本地(ish)SMTP服务器,并且它是负责交付的服务器。 – 2012-08-06 04:48:48
你有邮件服务器吗? – 2012-08-06 04:48:58