cm/flow-mailgun

Add description here

2.0.1 2017-04-03 21:59 UTC

This package is not auto-updated.

Last update: 2024-03-16 17:31:23 UTC


README

This package allows you to send E-Mails using the EmailService (contained in the package CM.Flow.Utilities), via mailgun instead of the local mail server.

Configuration

Settings.yaml

To be able to connect to mailgun, the following configuration is required (preferably in the global Settings.yaml).

CM:
  Flow:
    Mailgun:
      auth:
        mailgun-key: 'key-xxxxxxxxxx' # your mailgun api key
        domain: 'mg.example.com' # your mailgun domain

Objects.yaml

On top of that, a global Objects.yaml is required, containing the following lines. This will tell flow to send mails using the MailgunBackend.

CM\Flow\Utilities\Email\EmailBackendInterface:
  className: CM\Flow\Mailgun\Services\MailgunBackend
  scope: singleton