SendEmailCommand extends Command
Command for sending spooled messages.
Inspired and partially taken from symfony's swiftmailer package, adapted for Symfony/Mailer.
Tags
Attributes
- #[AsCommand]
- 'mailer:spool:send'
- 'Sends emails from the spool.'
- ['swiftmailer:spool:send']
Table of Contents
Properties
Methods
- __construct() : mixed
- configure() : void
- Defines the allowed options for this command
- execute() : int
- Executes the mailer command
Properties
$mailer read-only
protected
MailerInterface
$mailer
Methods
__construct()
public
__construct(MailerInterface $mailer) : mixed
Parameters
- $mailer : MailerInterface
configure()
Defines the allowed options for this command
protected
configure() : void
execute()
Executes the mailer command
protected
execute(InputInterface $input, OutputInterface $output) : int
Parameters
- $input : InputInterface
- $output : OutputInterface