xtr_mailer.command ¶
The console command sending a test email, on xtr-console.
Needs xtr-console installed beside this package. Importing this package declares
mailer:test with @as_command, like any other command module; the rest of the mailer
never needs it, so it works without a console.
A container builds the command with the transport it sends through. Run without one, the console cannot fill that parameter and reports it missing rather than build the command bare.
MailerTestCommand ¶
Sends a plain email through a transport, to see that the transport works.
The email goes straight to the transport, never through a message bus the mailer may queue
email on: the transport is what is tested. Given an application's named transports behind
one :class:~xtr_mailer.transport.Transports, --transport picks one of them by name,
through the X-Transport header it reads.
A container builds the command with its transport. Run without one, the console reports the
missing transport parameter rather than build the command bare.
Send through transport.