tacoberu/nette-mailing

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Support send mail in nette application.

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

This package is auto-updated.

Last update: 2021-10-15 05:43:44 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...']);