发送邮件我用下面的代码在笨不能在笨
$this->load->library('email');
$this->email->set_mailtype('html');
$this->email->from('[email protected]', 'Your Name');
$this->email->to('[email protected]');
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
$this->email->send();
echo $this->email->print_debugger();
在这里,我遇到了错误的
Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.
但是,如果邮件类型是发送邮件改为文字,即
$this->email->set_mailtype('text');
它工作正常。为什么这样呢?
这似乎是您的电子邮件客户端而不是Codeigniter的问题。你在用什么客户?你的筹码是多少? – elclanrs 2013-05-07 09:31:32
你配置了电子邮件库吗? – Simon 2013-05-07 09:32:05
看到这个。可能是同样的问题。 http://stackoverflow.com/questions/3859958/codeigniter-unable-to-send-email-using-php-mail – 2013-05-07 09:33:08