Nette Framework Nette\Mail\IMailer implementation allowing sending Nette\Mail\Message through Mailgun
CLI: composer require mkuk/mailgun-mailer:dev-master
composer.json : require: {"mkuk/mailgun-mailer": "dev-master"}
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.