MailFallback is Extension for Nette mail
Galek/MailFallback requires PHP 5.6 or higher.
- nette/di 2.4 or higher
- nette/mail 2.4 or higher
The best way install Galek/MailFallback is using Composer:
$ composer require galek/mail-fallback
extensions:
mailFallback: Galek\MailFallback\FallbackExtension
mailFallback:
retryCount: 3
retryWaitTime: 1000
default:
smtp: true
host: 'smtp.server.com'
port: 25
secure: 'tls'
username: 'my@server.com'
password: 'mySecretPassword'
/** @var \Galek\MailFallback\MailFallback @inject */
public $mailer;
public function sendMail(\Nette\Mail\Message $mail)
{
$mailer = $this->mailer;
$mailer->send($mail);
}