Class MailerJob
Namespace: Cake\Queue\Job
Method Summary
-
execute() public
Constructs and dispatches the event from a job message
-
getMailer() protected
Returns a mailer instance.
Method Detail
execute() ¶ public
execute(Cake\Queue\Job\Message $message): string|null
Constructs and dispatches the event from a job message
Parameters
-
Cake\Queue\Job\Message
$message job message
Returns
string|null
getMailer() ¶ protected
getMailer(string $name, array<string, mixed>|string|null $config = null): Cake\Mailer\Mailer
Returns a mailer instance.
Parameters
-
string
$name Mailer's name.
-
array<string, mixed>|string|null
$config optional Array of configs, or profile name string.
Returns
Cake\Mailer\Mailer
Throws
Cake\Mailer\Exception\MissingMailerException
if undefined mailer class.