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

MAIL_USERNAME=email@outlook.com

MAIL_PASSWORD=123456789

works in localhost but not in the hosting site.


Source: laravel

Leave a Reply