gam6itko/sparkpost-mailer

Symfony SparkPost Mailer Bridge

Installs: 7 257

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 2

Open Issues: 0

Type:symfony-bridge

v0.1.7 2021-12-01 11:44 UTC

This package is auto-updated.

Last update: 2022-07-29 02:14:26 UTC


README

Build Status Coverage Status

install

composer require gam6itko/sparkpost-mailer

configuration

services.yaml

services:
    mailer.transport_factory.sparkpost:
        class: Gam6itko\Symfony\Mailer\SparkPost\Transport\SparkPostTransportFactory
        arguments: ['@event_dispatcher', '@?http_client', '@?monolog.logger']
        tags:
            - {name: mailer.transport_factory}

.env

MAILER_DSN=sparkpost+api://api_key@default
MAILER_DSN=sparkpost+smtp://user:password@default:port

tests

Using sink server

About sink server

services:
    Gam6itko\Symfony\Mailer\SparkPost\EventListener\SinkEnvelopeListener:
        tags: ['kernel.event_subscriber']

Also

Api transmissions