phpauth / phpauth.mailer.phpmailer
There is no license information available for the latest version (0.99.1) of this package.
PHPMailer driver for PHPAuth
Package info
github.com/PHPAuth/PHPAuth.PHPMailerDriver
pkg:composer/phpauth/phpauth.mailer.phpmailer
0.99.1
2026-01-17 21:50 UTC
Requires
- php: ^7.4
- phpauth/phpauth: ^1.6.1
- phpmailer/phpmailer: ^6.0
README
$config = new \PHPAuth\Config($pdo); $config->setMailer(new \PHPAuth\Mailer\PHPMailerDriver([ 'debug' => true, 'auth' => true, 'username' => 'your-email@gmail.com', 'password' => 'your-password', 'secure' => \PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_STARTTLS, // 'tls' // OR 'secure' => \PHPMailer\PHPMailer\PHPMailer::ENCRYPTION_SMTPS, // 'ssl' 'host' => 'smtp.gmail.com', 'port' => 587, // relative to security type // setFrom 'site_email' => 'noreply@yoursite.com', 'site_name' => 'Your Site' ])); $auth = new \PHPAuth\Auth($pdo, $config);