PHP code example of oshco / mail-queue
1. Go to this page and download the library: Download oshco/mail-queue 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/ */
oshco / mail-queue example snippets
php
use oshco\middleware\MailQueue;
use webfiori\framework\middleware\MiddlewareManager;
class InitMiddleware {
public static function init() {
MiddlewareManager::register(MailQueue::get());
}
}
php
$mail1 = new Email($sendAccount);
$mail1->addTo('[email protected]');
MailQueue::enqueue(mail1)