BayWa r.e. LUSY Email Tools

2.0.0 2022-12-17 13:35 UTC

This package is auto-updated.

Last update: 2024-04-09 11:43:36 UTC


README

CircleCI

Installation

To install the Email tools, you will need Composer in your project:

composer require baywa-re-lusy/email

Usage

Currently, this library supports MailGun and SendGrid.

MailGun

use BayWaReLusy\Email\Adapter\MailgunAdapter;
use BayWaReLusy\Email\EmailService;

$adapter      = new MailgunAdapter('mailgun-api-key', 'mailgun-domain', 'https://api.eu.mailgun.net/');
$emailService = new EmailService($adapter);

AWS SES

use BayWaReLusy\Email\Adapter\AwsAdapter;
use BayWaReLusy\Email\EmailService;

$adapter      = new AwsAdapter('aws-key', 'aws-secret', 'aws-region', 'domain');
$emailService = new EmailService($adapter);