mkuk/mailgun-mailer

Implementation of NetteNette\Mail\IMailer for sending Nette\Mail\Message through the Mailgun service

v0.0.2 2015-04-30 10:39 UTC

This package is not auto-updated.

Last update: 2024-04-27 15:26:23 UTC


README

Nette Framework Nette\Mail\IMailer implementation allowing sending Nette\Mail\Message through Mailgun

Installation

CLI: composer require mkuk/mailgun-mailer:dev-master

composer.json : require: {"mkuk/mailgun-mailer": "dev-master"}

Usage

The Mailer class resides in NetteMailgun namespace. It can be instantiated as follows:

$mailer = new \NetteMailgun\MgMailer('mg.example.com', 'Secret API key')

Constructor parameters are

  • Domain - domain you have created in the mailgun service
  • API Key - Your Mailgun API key

Use MgMailer by calling send method with \Nette\Mail\Message Object as a parameter.