我正在测试使用codeigniter发送电子邮件并且我成功发送了电子邮件,但是当我检查我的收件箱时,我没有找到我之前发送的电子邮件。
这是控制器:
$this->load->library('email');
$this->email->from('email@yahoo.com', 'my name');
$this->email->to('email@yahoo.com');
$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: mail
From: "XXXXXXXXXXXXXX"
Return-Path:
Reply-To: "XXXXXXX@yahoo.com"
X-Sender: XXXXXXX@yahoo.com
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <XXXXXXX@yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
=?utf-8?Q?Email_Test?=
Testing the email class.