Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29762

Sending Email prompts Error: 535 Authentication Failed

$
0
0

I am trying to send an email using CodeIgniter. When I try to send email, I get this error:

Failed to authenticate password. Error: 535 Authentication Failed for no-reply@sample.comUnable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

And I am working with this code:

$config = Array('protocol'    => 'smtp','smtp_host'   => 'smtpout.secureserver.net','smtp_port'   => '465','smtp_user'.  => 'no-reply@sample.com','smtp_pass'   => '0p9o8i7u','smtp_crypto' => 'ssl','mailtype'    => 'html','charset'     => 'iso-8859-1','crlf'        => "\r\n");$this->load->library('email', $config);$this->email->set_newline("\r\n");$this->email->from('no-reply@sample.com', 'SYSTEM ROBOT');$this->email->to('recipient@outlook.com');$this->email->subject('Sample Subject');$this->email->message('HTML Content here');if($this->email->send()){    return true;} else {    return show_error($this->email->print_debugger());} 

My project is currently hosted by GoDaddy, as well as the email that I am using to send email (for this example is the no-reply@sample.com).

I based the SMTP settings from GoDaddy's website: https://ph.godaddy.com/help/mail-server-addresses-and-ports-for-business-email-24071

Password that I use is also correct because I try to login the email account using RoundCube.

How to fix the error that I am encountering?


Viewing all articles
Browse latest Browse all 29762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>