[英]CodeIgniter Email without SMTP not working
我正在使用CI電子郵件模塊,但無法正常工作。 我沒有SMTP憑據,因此請嘗試使用此代碼。
$this->load->library('email');
// Send Emails
$config = Array(
'mailtype' => 'html'
);
$this->email->initialize($config);
$this->email->set_newline("\r\n");
$this->email->from($from);
$this->email->to($to);
$this->email->subject($title);
$this->email->message($message);
//$this->email->send();
if ($this->email->send()) {
$this->email->clear();
return true;
} else {
die(show_error($this->email->print_debugger()));
//return false;
}
出現此錯誤
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.