昨天用Codeigniter发email,显示发送成功了
Your message has been successfully sent using the following protocol: sendmail
User-Agent: CodeIgniter
Date: Tue, 18 Jun 2013 15:13:47 -0400
但是却收不到email. 请问大家遇到过这种情况没有啊?
在MAC Pro上得MAMP上装得2.1.3版的Codeigniter, 运行正常。
代码是官网上的:
$this->load->library('email');
$this->email->from('[email protected]', 'Your Name'); //这里已经改为了自己的Gmail邮箱
$this->email->to('[email protected]'); //这里已经改为了自己的Gmail邮箱
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();
echo $this->email->print_debugger();
Your message has been successfully sent using the following protocol: sendmail
User-Agent: CodeIgniter
Date: Tue, 18 Jun 2013 15:13:47 -0400
但是却收不到email. 请问大家遇到过这种情况没有啊?
在MAC Pro上得MAMP上装得2.1.3版的Codeigniter, 运行正常。
代码是官网上的:
$this->load->library('email');
$this->email->from('[email protected]', 'Your Name'); //这里已经改为了自己的Gmail邮箱
$this->email->to('[email protected]'); //这里已经改为了自己的Gmail邮箱
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();
echo $this->email->print_debugger();