uzulla/pseudo_sendmail 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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

  1. composer require --dev uzulla/pseudo_sendmail. or git clone and composer install.
  2. set/change your sendmail path configuration.
  3. 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);
// ...

-ti is important. If use SwiftMailer default option -bs, the script will be hangup.

option / settings

  • -o/path/to/output specify output file path
  • -na not 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 -f or 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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固