bertoost/elasticemail-swiftmailer

The SwiftMailer transport integration for Elastic Email.

v1.0.2 2022-09-25 08:52 UTC

This package is auto-updated.

Last update: 2024-10-25 13:29:30 UTC


README

Elastic Email

Elastic Email SwiftMailer

A SwiftMailer transport implementation for Elastic Email.

If you found an issue, feel free to raise an issue.

Installation

composer require bertoost/elasticemail-swiftmailer

Usage example

use ElasticEmail\Api\EmailsApi;

$config = Configuration::getDefaultConfiguration()
    ->setApiKey('X-ElasticEmail-ApiKey', 'YOUR_API_KEY');
    
$apiInstance = new EmailsApi(new Client(), $config);

$transport = new ElasticEmailTransport($dispathEvent, $apiInstance);