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
Requires
- php: >=5.3.0
- mailgun/mailgun-php: >=2.0
- nette/nette: >=2.3.0
This package is not auto-updated.
Last update: 2025-04-18 21:38:24 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.