Statistics
661
0
0
272d
Badges
Tags
mail
Dependencies

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);
    }

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com