istrix / sendgrid-nette
Sendgrid integration for Nette mailer
Installs: 3 677
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 3
Open Issues: 3
Requires
- php: >=5.3.0
- nette/mail: ~2.2
- sendgrid/sendgrid: ^4.0
This package is not auto-updated.
Last update: 2021-05-09 20:43:58 UTC
README
Sendgrid integration for Nette mailer
Install
composer require istrix/sendgrid-nette
Configuration
In config add:
parameters:
sendgrid:
key: 'yourkey'
services:
nette.mailer: Istrix\Mail\SendgridMailer(%sendgrid.key%, %tempDir%)
Usage
Just inject IMailer and send message...
/** @var IMailer @inject */ public $mailer; protected function sendMail() { ... $this->mailer->send($message); ... }