1
这里发送邮件错误是我在控制器代码我有使用笨电子邮件库
$this->load->library('email');
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.googlemail.com',
'smtp_port' => 465,
'smtp_user' => '[email protected]',
'smtp_pass' => 'password'
);
$this->load->library('email', $config);
$this->email->set_newline("\r\n");
$this->email->from('[email protected]', 'Kyaw Swar');
$this->email->to('[email protected]');
$this->email->subject(' CodeIgniter Rocks Socks ');
$this->email->message('Hello World');
if (!$this->email->send())
show_error($this->email->print_debugger());
else
echo 'Your e-mail has been sent!';
我的问题是每次当我发送邮件,它表明,“该邮件已发送” 但它从来没有在我的收件箱.Much到达我吃惊的是,我发现在SPAM这封电子邮件..任何人可以帮助我走出这个该死的问题
尝试显示print_debugger(),即使“它已发送”。这可能是codeigniter的电子邮件类错误陷阱的问题。 – lracicot
好像你的smtp提供商属于被该邮件阻止的垃圾邮件,或者你的内容是你喜欢的垃圾邮件。你发送给哪个电子邮件提供商? @iracicot,库不是问题,它是发送,但他正在接收垃圾邮件文件夹,这是问题 – tomexsans
print_debugger()显示没有错误。 – Sanny