ondrs / nette-mailgun-mailer
Implementation of Nette\IMailer for Mailgun PHP SDK.
Installs: 8 630
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 1
Requires
- php: >=5.6.0
- guzzlehttp/psr7: ^1.4
- mailgun/mailgun-php: ~2.3.4
- nette/bootstrap: ~2.3.0|~2.4.0
- nette/di: ~2.3.0|~2.4.0
- nette/mail: ~2.3.0|~2.4.0
- php-http/curl-client: ^1.7
Requires (Dev)
- nette/tester: ~1.7.0
This package is not auto-updated.
Last update: 2021-08-21 11:58:36 UTC
README
Implementation of Nette\IMailer for Mailgun PHP SDK.
Installation
composer.json
"ondrs/nette-mailgun-mailer": "v0.2.1"
Configuration
Register the extension:
extensions: mailgun: ondrs\MailgunMailer\DI\Extension
And configure it:
mailgun: apiKey: 'testing-api-key' domain: 'domain.com'
Why?
Implementation of Nette\SmtpMailer is broken and nobody cares. Correct definition of email headers is tricky and can change over time. Sending emails directly via Mailgun API solves this issue. Mailgun service should generate (hopefully) correct headers for us.
This extension overrides default mailer service definition.