0
我試圖用這個代碼笨電子郵件後成功發送
$config = array(
'protocol' => 'smtp',
'smtp_host' => 'localhost',
'smtp_port' => 465,
'smtp_user' => '[email protected]',
'smtp_pass' => 'password',
'mailtype' => 'html',
'mailpath' => '/usr/sbin/sendmail',
'charset' => 'iso-8859-1',
'wordwrap' => TRUE
);
$this->load->library('email', $config);
$message = '';
$this->load->library('email', $config);
$this->email->set_newline("\r\n");
$this->email->from('[email protected]'); // change it to yours
$this->email->to('[email protected]'); // change it to yours
$this->email->subject('Resume from JobsBuddy for your Job posting');
$this->email->message($message);
if ($this->email->send()) {
echo 'Email sent.';
} else {
show_error($this->email->print_debugger());
}
在發送,但收件箱,垃圾郵件,垃圾沒有發現這一情況的電子郵件。 請幫助我。謝謝你