ondrs/nette-mailgun-mailer

This package is abandoned and no longer maintained. No replacement package was suggested.

Implementation of Nette\IMailer for Mailgun PHP SDK.

v0.2.1 2017-11-12 08:47 UTC

This package is not auto-updated.

Last update: 2021-08-21 11:58:36 UTC


README

Implementation of Nette\IMailer for Mailgun PHP SDK.

Installation

composer.json

"ondrs/nette-mailgun-mailer": "v0.2.1"

Configuration

Register the extension:

extensions:
  mailgun: ondrs\MailgunMailer\DI\Extension

And configure it:

mailgun:
  apiKey: 'testing-api-key'
  domain: 'domain.com'

Why?

Implementation of Nette\SmtpMailer is broken and nobody cares. Correct definition of email headers is tricky and can change over time. Sending emails directly via Mailgun API solves this issue. Mailgun service should generate (hopefully) correct headers for us.

This extension overrides default mailer service definition.