0
這不工作在亞馬遜EC2在線,但在本地工作罰款。而在EC2配置安全組視圖圖像: config EC2 security group不工作發送電子郵件從代理惠特亞馬遜ec2
我的配置控制器:
function SendEmail($Encabezado,$Nota){
$ci = get_instance();
$ci->load->library('email');
$config['protocol'] = "smtp";
$config['smtp_host'] = "ssl://smtp.gmail.com";
$config['smtp_port'] = "465";
$config['smtp_user'] = "[email protected]";
$config['smtp_pass'] = "mypass";
$config['charset'] = "utf-8";
$config['mailtype'] = "html";
$config['wordwrap'] = TRUE;
$config['newline'] = "\r\n";
$ci->email->initialize($config);
$ci->email->from('[email protected]', 'blabla');
$list = array('[email protected]');
$ci->email->to($list);
$this->email->reply_to('[email protected]', 'Explendid Videos');
$ci->email->subject($Encabezado);
$ci->email->message($Nota);
$ci->email->send();
}
啥子問題?請幫忙? 謝謝。
不工作的朋友試試這個。如果不添加行$ config ['smtp_crypto'] ='ssl';在當地沒有工作。 – blackslifer888