Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bilal590's avatar

Email sending from laravel on hosting serve showing error but same credentials working on localhost

Failed to authenticate on SMTP server with username "[email protected]" using 2 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535 5.7.3 Authentication unsuccessful [AM0PR05CA0002.eurprd05.prod.outlook.com] ". Authenticator XOAUTH2 returned Expected response code 235 but got code "535", with message "535 5.7.3 Authentication unsuccessful [AM0PR05CA0002.eurprd05.prod.outlook.com] ".
  

I have a laravel app that sending email to my customers. I send email through Hotmail. It works fine on localhost but when I upload it to serve it is showing above error. All Credentials are correct. NOTE: My main domain is Cloudflare. Is there any configuration for sending email from laravel if a domain is on Cloudflare

0 likes
1 reply
siangboon's avatar

try bypass cloudflare for the MX host...

1 like

Please or to participate in this conversation.