Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Koldy PHPMailer

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.

About

Package that integrates PHPMailer with Koldy Framework

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages