Can I send email with mailgun sandbox domain under my local OS?

As Sandbox domains are restricted to authorized recipients only.So make sure to verify recipients emails in

https://app.mailgun.com/app/sending/domains

enter image description here

If recipients has not received email to inbox then check in spam
folder.

Ref:https://help.mailgun.com/hc/en-us/articles/360011702394-Why-Do-My-Emails-Go-to-Spam-

If still not working then change mailer to smtp

MAIL_MAILER=smtp

Then run

php artisan config:clear

Env

MAIL_MAILER=smtp
MAIL_HOST=smtp.mailgun.org
MAIL_PORT=587
MAIL_USERNAME=postmaster@sandbox**************.mailgun.org
MAIL_PASSWORD=************************
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=youraccountemailaddress
MAIL_FROM_NAME="${APP_NAME}"

Leave a Comment