SMTP Mail CI not working, why? |
[eluser]Unknown[/eluser]
this my code: public function go_mail(){ $this->load->library("email"); $config["protocol"]="smtp"; $config["mailpath"]="/usr/sbin/sendmail"; $config["charset"]="iso-8859-1"; $config["wordwrap"]=TRUE; $config["smtp_host"]="smtp.gmail.com"; $config["smtp_user"]="gmail"; $config["smtp_pass"]="passmail"; $config["smtp_port"]=465; $this->email->initialize($config); $this->email->from("[email protected]","taufik ute alfan"); $this->email->to("alfhan@yahoo.co.id"); $this->email->subject("Coba Kirim Email"); $this->email->message("test_msg"); $this->email->send(); echo $this->email->print_debugger(); // $this->load->view('send_mail_tes_view'); } and this error debuger from CI hello: The following SMTP error was encountered: Failed to send AUTH LOGIN command. Error: from: The following SMTP error was encountered: to: The following SMTP error was encountered: data: The following SMTP error was encountered: The following SMTP error was encountered: Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method. From: "taufik ute alfan" Return-Path: To: alfhan@yahoo.co.id Subject: =?utf-8?Q?Coba_Kirim_Email?= Reply-To: "[email protected]" X-Sender: [email protected] X-Mailer: CodeIgniter X-Priority: 3 (Normal) Message-ID: <[email protected]> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit test_msg <br /> Can help me, why can this?
[eluser]vitoco[/eluser]
I think it's clear why you can send it , this was on your error code Code: Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method. Check your installation. Slds
[eluser]Unknown[/eluser]
[quote author="vitoco" date="1357202799"]I think it's clear why you can send it , this was on your error code Code: Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method. Check your installation. Slds[/quote] No the process of sending email using SMTP without CI can be done, with the SMTP settings on sendmail.ini. but for setting the CI page that did not work.
[eluser]InsiteFX[/eluser]
php.ini Have you turned on php_openssl? Try to uncomment extension=php_openssl.dll in your php.ini file. Also check your php.ini smtp settings. Code: $email_config = array(
[eluser]Rowan Wilson[/eluser]
Are you doing this on a local development machine or on a server from a web hosting company? Is it configured to allow sending of smtp email? |
Welcome Guest, Not a member yet? Register Sign In |