所以代码:
$this->load->library('email');
$this->email->from('mysite@mysite.com', 'mysite');
$this->email->to($email);
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();
我不明白为什么我发送电子邮件时没有错误,但是当我检查我的邮箱时,没有电子邮件,所以看起来电子邮件没有到达他的目的地,我正在使用 CodeIgniter,也许我需要添加一些其他设置来解决这个问题?请帮忙!!
ps:我也用过原生的mail()函数,反正email不来,我是在gmail里查的
Your message has been successfully sent using the following protocol: mail
From: "mysite"
Return-Path:
Reply-To: "mysite@mysite.kg"
X-Sender: mysite@mysite.kg
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <501f4f33580d5@mysite.kg>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
=?utf-8?Q?Email_Test?=
Testing the email class.
有什么不对?