tacoberu/nette-mailing

Support send mail in nette application.

v2.4.1 2020-02-15 01:47 UTC

This package is auto-updated.

Last update: 2020-06-15 02:51:36 UTC


README

Mailer support for Nette. Support logging mail to files.

Inspired by Pavel Janda (https://componette.com/ublaboo/mailing/). Many thanks.

Starts:

composer require tacoberu/nette-mailing

Register extension in config file:

extensions:
    mailing: Taco\Nette\Mailing\Extension

mailing:
    do: log
    sender: foo@bar.baz
    log_directory: %appDir%/../var/log/mails

Using service Taco\Nette\Mailing\MailingService

$this->container->getByType(Taco\Nette\Mailing\MailingService::class)->send('contact', 'recipient@example.com', ['greating' => 'Salut...']);