Componette

Componette

ondrs

ondrs / nette-mailgun-mailer v0.2.1

Implementation of Nette\IMailer for Mailgun PHP SDK.

download-cloud-line composer require ondrs/nette-mailgun-mailer

Nette Mailgun Mailer Total Downloads Build Status Latest Stable Version

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.

price-tag-2-line

Badges

guide-fill

Dependencies

php (>=5.6.0)
nette/bootstrap (~2.3.0|~2.4.0)
nette/di (~2.3.0|~2.4.0)
nette/mail (~2.3.0|~2.4.0)
Componette Componette felix@nette.org