Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expected response code 250 but got code "", with message ""

I can send my emails in localhost flawlessly. but ever since I uploaded my program into a hosting site I get this error

Expected response code 250 but got code "", with message ""

I also updated the .env file.

MAIL_DRIVER=smtp  MAIL_HOST=smtp-mail.outlook.com  MAIL_PORT=587  [email protected]  MAIL_PASSWORD=123456789 

works in localhost but not in the hosting site.

i am using laravel 5

like image 957
Primecore Avatar asked Jun 30 '15 08:06

Primecore


1 Answers

I ran through this error so many times for some reasons.

When see this error,

Expected response code 250 but got code “”, with message “”

Please triple check your email password.

Note : Test your credentals first on a phone app or log-in into the mail site. If pass, you may update in your .env file

MAIL_DRIVER=smtp MAIL_HOST=smtp.mail.yahoo.com MAIL_PORT=465 [email protected] MAIL_PASSWORD=**** 

If you know for sure that your password is correct.

Check to make sure your Gmail or Yahoo Mail allow app log-in.

Example

Yahoo

enter image description here

like image 63
code-8 Avatar answered Oct 12 '22 23:10

code-8