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
0.99.0
2026-01-17 21:46 UTC
Requires
- php: >=7.4
- ext-iconv: *
- nette/mail: ^3.0|^4.0
- phpauth/phpauth: ^1.6.1
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);