The email
publisher is a small wrapper around the Swiftmailer Bundle.
If the symfony/swiftmailer-bundle
composer package is installed, this publisher will be available.
perform_base:
mailer:
from_address: noreply@superapp.com
This publisher requires the subject
key passed into the context.
<?php
$notification = new Notification($recipient, 'new-account', ['subject' => 'Welcome to your new account']);
$notifier->send($notification, ['email']);