koldy / phpmailer
An extension to Koldy Framework that brings integration for PHPMailer
0.1.1
2022-05-26 21:28 UTC
Requires
- php: >=8.1
- koldy/framework: ^3.0.0
- phpmailer/phpmailer: v6.6.0
This package is auto-updated.
Last update: 2025-01-27 03:05:50 UTC
README
Use this package to integrate PHPMailer with your project built on top of Koldy Framework. Minimum PHP version is PHP 8.1
.
composer require koldy/phpmailer
Configuration
In your project's config folder (usually configs/mail.php
), add the following block:
'phpmailer' => [ 'enabled' => true, 'adapter_class' => \KoldyPHPMailer\PHPMailer::class, 'options' => [ 'host' => 'your.domain.com', 'port' => 587, 'username' => 'your.username', 'password' => 'your.password', 'type' => 'smtp', 'adjust' => function ($phpmailer) { // optional // you can adjust the PHPMailer's instance here, for example: $phpmailer->SMTPDebug = \PHPMailer\PHPMailer\SMTP::DEBUG_SERVER; } ] ]
Licence
Open sourced and published under MIT licence.