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

Skip to content

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