1. Go to this page and download the library: Download mikk150/yii2-queuemailer library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mikk150 / yii2-queuemailer example snippets
'components' => [
'mailer' => [
'class' => \mikk150\queuemailer\Mailer::class,
'mailer' => [
'class' => '<underlying mailer config>',
'messageClass' => '<underlying mailer message class>',
],
'queue' => 'mailer-queue', // in case you need specific queue
],
]