PHP code example of adt / smtp-queue-mailer

1. Go to this page and download the library: Download adt/smtp-queue-mailer 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/ */

    

adt / smtp-queue-mailer example snippets


class Mailer extends \ADT\Mail\SingleRecipientMailer {
	use SmtpQueueMailer {
		send as queueSend;
	}

	public function send(\Nette\Mail\Message $message) {
		…
		$this->queueSend($mail); // místo parent::send($mail)
	}

}