php bin/console mailer:test

Test Mailer transports by sending an email

Usage

mailer:test [--from [FROM]] [--subject [SUBJECT]] [--body [BODY]] [--transport [TRANSPORT]] [--] <to>

Arguments

to   The recipient of the message 

Options

      --from        The sender of the message 
      --subject     The subject of the message 
      --body        The body of the message 
      --transport   The transport to be used 

Help

The mailer:test command tests a Mailer transport by sending a simple email message:

php bin/console mailer:test to@example.com

You can also specify a specific transport:

    php bin/console mailer:test to@example.com --transport=transport_name

Note that this command bypasses the Messenger bus if configured.