Configuration

Start with registering extension in config.neon:

extensions:
	mailing: Ublaboo\Mailing\DI\MailingExtension

Now there are several config options:

mailing:
	do: both # log|send|both
	log_directory: '%appDir%/../log/mails' # this is default option
	mail_images_base_path: %wwwDir% # this is default option
	mails: []

Let's discuss each of these options:

do

In this option you may choose between these three directives:

log_directory

That one is pretty obvious. Directory, where mail files (.eml) will be stored.

mail_images_base_path

This is the path, where Nette\Mail\Message will look for all images that can be inline embedded in mail.

mails

This array filled with your parameters (probably mail addresses - like recipients, senders, etc) will be available in instance of each of your mail class (read more) so that you can easily set sender and recipient, bcc, cc or whatever you need for particular mail.

E.g.:

mailing:
	mails: [
		default_sender: foo@bar.baz
	]
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tím souhlasíte. V pořádku Další informace