0
克服錯誤消息時克服錯誤信息出現,如果郵件發送失敗,因爲網絡超時演出消息或重定向使沒有錯誤信息。由於從因爲笨緩慢的互聯網的失敗時,</p> <p>出現在笨,因爲緩慢的互聯網的失敗
function sent_email_contact_admin($data){
$CI=& get_instance();
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
$config['smtp_port'] = 465;
$config['smtp_user'] = '[email protected]';
$config['smtp_pass'] = '******';
$config['mailtype'] = 'html';
$config['charset'] = 'iso-8859-1';
$config['wordwrap'] = TRUE;
$data = array (
'nama' => $data['nama'],
'email' => $data['email'],
'message' => $data['message']
);
$data['base_url'] = base_url();
$message = $CI->load->view('layout/email_template_contact_admin', $data, true);
$CI->load->library('email', $config);
$CI->email->set_newline("\r\n");
$CI->email->from('[email protected]');
$CI->email->to('[email protected]');
$CI->email->reply_to($data['email']);
$CI->email->subject("Info Contact Alternet");
$CI->email->message($message);
$CI->email->send();
}
也許包裹? –