phpauth / phpauth.mailer.nette
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
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);