kuusamo/plugin-smtp

SMTP plugin for Kuusamo

1.0.1 2023-05-03 18:19 UTC

This package is auto-updated.

Last update: 2024-12-03 21:34:46 UTC


README

Latest Stable Version Total Downloads License Build Status

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