kuusamo/plugin-mailgun

Mailgun plugin for Kuusamo

1.0.2 2023-05-03 12:30 UTC

This package is auto-updated.

Last update: 2024-11-03 21:34:00 UTC


README

Latest Stable Version Total Downloads License Build Status

This plugin adds Mailgun email integration to Kuusamo.

Installation

Install into your project using Composer.

composer require kuusamo/plugin-mailgun

Usage

Install it in index.php of your project.

$mailgunConfig = new Kuusamo\Plugin\Mailgun\MailgunConfig([
    'senderAddress' => 'test@example.com',
    'senderName' => 'Kuusamo',
    'senderReplyAddress' => 'reply@example.com', // optional
    'apiKey' => 'abc123',
    'domain' => 'kuusamo.org'
]);

$provider = Kuusamo\Plugin\Mailgun\MailgunFactory::create($mailgunConfig);
Kuusamo\Vle\Service\Email\EmailFactory::setProvider($provider);

Development

Run the tests

ant