kuusamo / plugin-smtp
SMTP plugin for Kuusamo
1.0.1
2023-05-03 18:19 UTC
Requires
- php: >=7.4.0
- kuusamo/core: *
- phpmailer/phpmailer: 6.*
Requires (Dev)
- phpunit/phpunit: 9.*
- squizlabs/php_codesniffer: 3.*
This package is auto-updated.
Last update: 2024-11-03 21:18:07 UTC
README
This plugin adds SMTP email integration to Kuusamo.
Installation
Install into your project using Composer.
composer require kuusamo/plugin-smtp
Usage
Install it in index.php
of your project.
$smtpConfig = new Kuusamo\Plugin\Smtp\SmtpConfig([
'senderAddress' => 'test@example.com',
'senderName' => 'Kuusamo',
'senderReplyAddress' => 'reply@example.com', // optional
'host' => 'smtp.example.com',
'port' => 25,
'username' => 'smtp-user',
'password' => 'smtp-password'
]);
$provider = Kuusamo\Plugin\Smtp\SmtpFactory::create($smtpConfig);
Kuusamo\Vle\Service\Email\EmailFactory::setProvider($provider);
Development
Run the tests
ant