Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SMTP Error: 535 5.7.8 Authentication credentials invalid

Tags:

smtp

cakephp

I am using jango smtp setting in my project.

Below is my code:

funcation sendmail()
{

$this->Email->smtpOptions = array(

  'timeout' => '30',

  'port' => '25', 

  'host' => 'relay.jangosmtp.net',

  'username' => 'xxxx',

  'password' => '1234567'

);
}

sendmail function gives the following error:

SMTP Error: 535 5.7.8 Authentication credentials invalid

What may be the reason?

like image 518
jsduniya Avatar asked May 28 '13 05:05

jsduniya


People also ask

How do you fix 535 5.7 8 username and password not accepted?

If getting "Username and Password not accepted" 535 5.7. 8 error, but user name and password work logging onto email via web (with 2-factor authentication), you may need to enable "Access for less secure apps" (allow exceptions to 2-factor authentication) in your email settings.

How do I fix 535 incorrect authentication?

Solution - Here's How To Resolve ItThe user must validate the credentials used to login into the email server. Check if the account is in working order and is not disabled. Validate the SMTP configuration to check if the connection encryption and authentication settings are compatible with the email server.

Could not send email 1 Auth 535 5.7 8 username and password not accepted?

smtp error Error: Invalid login: 535-5.7. 8 Username and Password not accepted. It typically indicates that you did not enable Less Secure Apps on the inbox side of your email address. If you see this error, navigate to this 2 links below and double check that these settings are enabled, and try connecting again.

How do I fix SMTP authentication error?

SMTP connection can't be established If you have turned on the 2-factor authentication for your email account so you either need to turn it off or generate an app password for your email account. That app password can be used in your SalesHandy account to connect the email account via SMTP method.


1 Answers

This is basically because credentials is not correct !!

May be this will help you !!

535 Authentication failed. Restarting authentication process.

If a SMTP client authenticates but the username or password is incorrect, or the account is disabled, hMailServer sends this error message to the client.

http://support.qualityunit.com/156325-Email-is-not-sent-because-of-failed-authentication

SMTP error 535 authentication failed in roundcube

SMTP Error (435): Authentication failed

If you face SMTP error 535 Authentication Failed while sending an email from round cube, then you can check the following things.

[root@server1 ~]# vi /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php

and changed

$rcmail_config['smtp_user'] = ‘%u’;
to
$rcmail_config['smtp_user'] = ”;
like image 135
Javascript Coder Avatar answered Sep 18 '22 20:09

Javascript Coder