0

I have implemented a mailing system in Laravel which send mails to the users. When tried from localhost, it is sending emails to both Gmail and outlook, but when I moved the code to production only Gmail accounts are receiving the mails.

.env

MAIL_DRIVER="smtp" 
MAIL_HOST="smtp.gmail.com" 
MAIL_PORT="587"
MAIL_ENCRYPTION="tls" 
Karl Hill
  • 12,937
  • 5
  • 58
  • 95
  • When you say "Outlook" what do you mean? That platform has a lot of different meanings over the years from `outlook.office.com` to a thick client that can be on top of Exchange and non-Exchange backends. Does your sending server get an email back from the server that rejected your mail with an error? – JNevill Apr 28 '22 at 13:56
  • Have you checked the spam folder? Different clients/email providers can have different rules/services for detecting/flagging emails as spam. – M. Eriksson Apr 28 '22 at 14:01
  • Check with your hosting provider first, many would block smtp by default to avoid spam or using a different port. – yangqi Apr 28 '22 at 23:04
  • @JNevill yes outlook.office.com .. yes the i have checked the outbox of the server's email that the email has been sent – Brownie Egg Apr 29 '22 at 17:57
  • @M.Eriksson yes i have checked the spam email is not recieved – Brownie Egg Apr 29 '22 at 17:58

0 Answers0