Componette

Componette

download-cloud-line composer require galek/mail-fallback

MailFallback

MailFallback is Extension for Nette mail

Requirements

Galek/MailFallback requires PHP 5.6 or higher.

Installation

The best way install Galek/MailFallback is using Composer:

$ composer require galek/mail-fallback

Usage:

config.neon

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'

Presenter

    /** @var \Galek\MailFallback\MailFallback @inject */
    public $mailer;
    
    public function sendMail(\Nette\Mail\Message $mail)
    {
        $mailer = $this->mailer;
        $mailer->send($mail);
    }
price-tag-2-line

Badges

guide-fill

Dependencies

php (>= 5.6)
nette/mail (>= 2.4)
nette/di (>= 2.4)
Componette Componette felix@nette.org