Class SendMailJob
SendMailJob class to be used by QueueTransport to enqueue emails
Namespace: Cake\Queue\Job
Method Summary
-
execute() public
Executes logic for Job
-
getTransport() protected
Initialize transport
Method Detail
execute() ¶ public
execute(Cake\Queue\Job\Message $message): string|null
Executes logic for Job
Parameters
-
Cake\Queue\Job\Message
$message
Returns
string|null
getTransport() ¶ protected
getTransport(string $transportClassName, array $config): Cake\Mailer\AbstractTransport
Initialize transport
Parameters
-
string
$transportClassName Transport class name
-
array
$config Transport config
Returns
Cake\Mailer\AbstractTransport
Throws
InvalidArgumentException
if empty transport class name, class does not exist or send method is not defined for class