phpauth/phpauth.mailer.nette

There is no license information available for the latest version (0.99.0) of this package.

Nette Mail driver for PHPAuth

Installs: 1

Dependents: 1

Suggesters: 1

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/phpauth/phpauth.mailer.nette

0.99.0 2026-01-17 21:46 UTC

This package is auto-updated.

Last update: 2026-01-17 21:59:27 UTC


README

$config = new \PHPAuth\Config($pdo);

$config->setMailer(new \PHPAuth\Mailer\NetteMailerDriver([
    'smtp'      =>  true,
    
    'host'      =>  'smtp.gmail.com',
    'port'      =>  587, // relative to security type 

    'username'  =>  'your-email@gmail.com',
    'password'  =>  'your-password',

    'secure'    =>  \PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_STARTTLS, // 'tls'
    // OR
    'secure'    =>  \PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_SMTPS,   // 'ssl'
    
    // setFrom
    'site_email'    => 'noreply@yoursite.com',
    'site_name'     => 'Your Site'
]));

$auth = new \PHPAuth\Auth($pdo, $config);