-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: terminal command to send test emails #4020
Comments
@billythekid Just finished an idea for this over at #4407 but not entirely sure about one thing. What specifically did you mean by testing for specific environments? Do you mean in the console command you want to select |
@gtettelaar Yeah, I set dev and staging environments to use specific mailer components (usually mailtrap) and just set them in app.php…
You'll see I don't bother with production mailer component because, depending on the site/client it could be any of local/smtp/mailgun/postmark/mandrill/whatever so for production I actually set it up in the normal dashboard way. I'd either like the console command to just know, or have passed to it as a parameter, what environment it's in and use those settings, regardless of what's filled in in email settings on the site. Does this help clarify it? |
@billythekid That makes sense. It will be a selection you can make (I.E. Which env you want to use) which will be asked once you run the console command. I'll implement that over the weekend in the PR I mentioned above. Thanks for your help! |
Resolved in #4407 |
It would be nice to have a terminal command to send test emails for the instances where we're overriding email settings in app.php with different configurations for environments etc.
At the moment to send a test email from the dashboard you need to fill in settings and it uses those, even if they're being overridden.
A command in terminal could solve this, something like;
./craft email/test [[email protected]] [environment]
The text was updated successfully, but these errors were encountered: