joswide/mailgun-nette

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

v0.0.3 2017-03-25 12:09 UTC

This package is not auto-updated.

Last update: 2024-05-17 17:39:00 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.