uzulla/pseudo_sendmail
最新稳定版本:v1.0.2
Composer 安装命令:
composer require uzulla/pseudo_sendmail
包简介
pseudo sendmail by php
关键字:
README 文档
README
This is pseudo sendmail command for developer.
Write raw mail(eml) to file.
setup
composer require --dev uzulla/pseudo_sendmail. or git clone and composer install.- set/change your sendmail path configuration.
- send mail.
php.ini sample
sendmail_path = "/{this dir}/bin/sendmail"
# If you installed composer, also can be use following path.
sendmail_path = "/{project path}/vendor/bin/sendmail"
FYI: sendmail_path is PHP_INI_SYSTEM. so, You can't set by ini_set().
SwiftMailer sample
// ...
$transport = new Swift_SendmailTransport("/{this dir}/bin/sendmail -ti");
$mailer = new Swift_Mailer($transport);
// ...
-tiis important. If use SwiftMailer default option-bs, the script will be hangup.
option / settings
-o/path/to/outputspecify output file path-nanot append eml. output file clear when every send reset.
sendmail -it -fasdf@example.jp -o/tmp/test.eml
sendmail -it -fasdf@example.jp -na -o/tmp
-i -t -for other options will be ignored.
don't
-o /file, must-o/file.
require
- PHP>=7.4
do you need mail sending sample?
see tests/*.
LICENSE
MIT
统计信息
- 总下载量: 635
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-20