koldy/phpmailer

An extension to Koldy Framework that brings integration for PHPMailer

Installs: 165

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/koldy/phpmailer

0.2.0 2025-12-09 15:34 UTC

This package is auto-updated.

Last update: 2025-12-09 15:34:43 UTC


README

Use this package to integrate PHPMailer with your project built on top of Koldy Framework. Minimum PHP version is PHP 8.1. This package is using PHPMailer to send emails via SMTP only.

Installation

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', // required
        'port' => 465, // required
        'username' => 'your.username', // optional
        'password' => 'your.password', // optional
        'from' => 'no-reply@your.domain.com', // optional
        'fromName' => 'Your Name', // optional
        '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.