joswide / NetteMailgun

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NetteMailgun

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.

About

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


Languages

Language:PHP 100.0%