istrix/sendgrid-nette

Sendgrid integration for Nette mailer

v1.1.1 2016-09-30 10:35 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);
		...
	}