jakub-kaspar/mailer
Composer 安装命令:
composer require jakub-kaspar/mailer
包简介
README 文档
README
Configuration
(config.neon - example configuration can be found in "example.neon")
| required parameters | not required |
|---|---|
| db | mailer |
| filters | maxInBody |
| 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
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2019-04-11