Good morning friends. I have a Laravel application that after a user registers, they get a confirmation mail. The problem is that my application sends email to services like Email, Mailtrap or Roundcube but not to Gmail. It doesn't show any errors. In fact it gives a successful response that the email has been sent but in the Gmail account nothing show's up. I'll be so grateful if somebody can help me. Thank you all.
CodePudding user response:
IIRC, it's the regular behavior that you do not see the mail you application sent, in you Gmail-Outbox.
Besides, does the email get sent at all? Meaning, you receive no error. Is a mail being sent?
If not, check this:
- To use Gmail for sending mails, you have to allow "less secure apps".
- Check the configuration: For me, port 587 with tls works.
CodePudding user response:
The problem is gmail turned off less secure app,
https://support.google.com/accounts/answer/6010255?hl=en
so now its a challenge to send email through gmail smtp, you have to use service something like mailgun, or sendgrid or webmail.