There is no license information available for the latest version (1.0.4) of this package.

1.0.4 2019-04-12 07:37 UTC

This package is not auto-updated.

Last update: 2024-06-15 08:13:17 UTC


README

Configuration

(config.neon - example configuration can be found in "example.neon")

required parametersnot required
dbmailer
filtersmaxInBody
maxReport

What are these parameters?

db -> Database

filters -> email filters

mailer -> any instance extending IMailer from Nette

maxInBody -> How much of reported emails can be sent as text in body

maxReport -> Maximum report size (in .txt)

Filters

How to make own filters? This extension has own interface for that so you can use IFilter that is inside of folder src/interfaces So to create own filter, implement this Interface and then register your filter in config.neon (in example.neon is sqlFilter as example filter)

Database

This extension already has preset tables in EmailLogModel. However, if you know what you are doing, you can create own database and then rewrite them. If you don't want to mess up with that, you can use SQL command here:

CREATE TABLE `email_log` (
 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
 `created` datetime DEFAULT NULL,
 `from` varchar(100) DEFAULT NULL,
 `to` varchar(100) DEFAULT NULL,
 `subject` varchar(255) DEFAULT NULL,
 `message` text,
 `message_object` longblob,
 `is_sent` tinyint(1) unsigned NOT NULL DEFAULT '0',
 `number_of_tries` tinyint(3) unsigned NOT NULL DEFAULT '0',
 `exception` varchar(255) DEFAULT NULL,
 `is_reported` tinyint(1) NOT NULL DEFAULT '0',
 PRIMARY KEY (`id`),
 KEY `is_sent` (`is_sent`),
 KEY `number_of_tries` (`number_of_tries`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8