Answer the question
In order to leave comments, you need to log in
Expected response code 250 but got code "554", with message "554 Sandbox subdomains are for test purposes only."?
Set up email sending, Laravel 5.4, Homestead.
Mail::to('[email protected]')->send(new Registered(Auth::user()));
Expected response code 250 but got code "554", with message "554 Sandbox subdomains are for test purposes only. Please add your own domain or add the address to authorized recipients in Account Settings. "
Mail & Local Development
When developing an application that sends email, you probably don't want to actually send emails to live email addresses. Laravel provides several ways to "disable" the actual sending of emails during local development.
Answer the question
In order to leave comments, you need to log in
This message is from mailgun, by default it is registered in /config/mail.php and in .env what settings you use.
If you want to send mail using the php function (or rather, the SwiftMail wrapper is still used), then in the config or in .env put the mail driver in mail .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question