Welcome Guest, Not a member yet? Register   Sign In
SMTP Email Setup and Troubleshooting
#2

(This post was last modified: 11-29-2016, 09:25 AM by dbrooke. Edit Reason: emails )

No thoughts?

I'm using CPANEL and CI 3.x.

Depending on what I put in the config, and how I enact the config.. the two prominent errors are:
'Failed to send AUTH LOGIN'
'Unable to send email using PHP SMTP'

Note, if I change the protocol to mail or sendmail, debugger shows it successfully sends.. but I still never the email.

Very frustrating.

Latest Code:
PHP Code:
                                       $config = array(
 
                                           'protocol' => 'sendmail'// smtp, mail, sendmail
 
                                           'smtp_host' => 'mail.somedomain.com',
 
                                           'smtp_port' => 25,
 
                                           'smtp_user' => '[email protected]',
 
                                           'smtp_pass' => '*****',
 
                                           'mailtype'  => 'text',
 
                                           'charset'   => 'iso-8859-1',
 
                                           'crlf' => "\r\n",
 
                                           'smtp_keepalive' => TRUE,
 
                                           // 'smtp_crypto' => 'tls',
 
                                           // 'newline' => "\\r\\n",
 
                                           'wordrap' => TRUE
                                        
);
 
                                       $this->load->library('email'$config);
 
                                       $this->email->set_newline("\r\n");

 
                                       $this->email->from('[email protected]''title');
 
                                       $this->email->to($vEmail);
 
                                       $this->email->subject('blah blah blah');
 
                                       $this->email->message('Testing the email class.');

 
                                       $vEresult $this->email->send(FALSE);
 
                                       echo $this->email->print_debugger(); 
Reply


Messages In This Thread
SMTP Email Setup and Troubleshooting - by dbrooke - 11-21-2016, 12:04 PM
RE: SMTP Email Setup and Troubleshooting - by dbrooke - 11-22-2016, 01:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB