定制 jakub-kaspar/mailer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jakub-kaspar/mailer

Composer 安装命令:

composer require jakub-kaspar/mailer

包简介

README 文档

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

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2019-04-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固