guliano / esco-mail
ZF2 邮件功能模块封装
v0.3.1
2021-04-20 11:17 UTC
Requires
- php: ^5.6|^7.0,<7.4
- zendframework/zend-log: ~2.4
- zendframework/zend-mail: ~2.4
- zendframework/zend-modulemanager: ~2.4
- zendframework/zend-view: ~2.4
Requires (Dev)
- mikey179/vfsstream: ~1.4
- phpunit/phpunit: ^5.7
- satooshi/php-coveralls: ^2.2
- squizlabs/php_codesniffer: ~2.0
- zendframework/zend-mvc: ~2.4
- zendframework/zend-uri: ~2.4
README
简介
此模块封装了 ZF2 的邮件功能。它支持文件附件、模板邮件编辑,并提供额外的 测试模式
,用于将邮件发送到定义的根电子邮件地址,而不是实际收件人。
要求
请参阅 composer.json 文件。
安装
运行以下 composer
命令
$ composer require guliano/esco-mail
或者,手动将以下内容添加到您的 composer.json
文件的 require
部分
最后,将模块名称添加到项目的 config/application.config.php
文件中的 modules
键下
return array( /* ... */ 'modules' => array( /* ... */ 'EscoMail', ), /* ... */ );
使用方法
待办事项
配置
用户配置
此模块使用顶级键 esco-mail
进行用户配置。
键: mail_test_mode
待办事项