Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add a mailer:test command #47040

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

Merged
merged 1 commit into from
Jul 24, 2022
Merged

Add a mailer:test command #47040

merged 1 commit into from
Jul 24, 2022

Conversation

fabpot
Copy link
Member

@fabpot fabpot commented Jul 23, 2022

Q A
Branch? 6.2
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #43687, Fix #39173, Fix #37409
License MIT
Doc PR

This PR introduces a mailer:test command that helps test if sending emails works correctly.
The only argument is the To header. Everything is optional.
There is no support for complex emails (STDIN for body, HTML support, attachments, ...) as the goal is to test if a transport works correctly.

Note that this command bypasses the Messenger bus if configured to ease testing even when the messenger consumer is not running.

@fabpot fabpot merged commit ebe3cf8 into symfony:6.2 Jul 24, 2022
@fabpot fabpot deleted the mailer-command branch July 24, 2022 08:21
@alexander-schranz
Copy link
Contributor

alexander-schranz commented Jul 26, 2022

Nice 👍 was searching for an alternative of swiftmailer:send:email command. First was sad when I found the closed #37409 issue. Know very happy this is coming with 6.2 🎉 .
This really helps when having issues with smpt server to check if error of a not send email is in the smtp configuration or in the application itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Mailer] Send email command
4 participants