istrix/sendgrid-nette

This package is abandoned and no longer maintained. No replacement package was suggested.

Sendgrid integration for Nette mailer

v1.1.1 2016-09-30 10:35 UTC

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);
		...
	}