k-ko/send-mail-smtp
Composer 安装命令:
composer require k-ko/send-mail-smtp
包简介
Shell script wrapper for PHPMailer
README 文档
README
Install
composer require k-ko/send-mail-smtp
Send emails secured via your own SMTP email server
Usage: vendor/bin/sendmail -c <config-file> [options]
Options:
-c Config file {required}
-t To: address(es), can be used multiple times
-s Subject
-b Plain text body, if starts with @ assume get from file
-f HTML body, if starts with @ assume get from file
-w CC: address(es), can be used multiple times
-z BCC: address(es), can be used multiple times
-r From: From email address, overwrites config file if given
-a Attachment(s); file_name[,display_name]
-p Priority (0|1)
-v[vvv] PHPMailer verbosity
-h This help
Possible formats for emails: 'name@example.com' or 'any name <name@example.com>'
If a HTML body is set, an additional plain text body will be ignored!
All options can be defined in the config file and will be overwritten by command line parameters.
All Email addresses are accepted as name@example.com or any name <name@example.com> or "any name" <name@example.com>
Verbosity levels are translated to
0- No debug output, default1- Client commands2- Client commands and server responses3- Client commands and server responses plus connection status4- Low-level data output, all messages
Messages goes to STDERR
Configuration
Copy config.dist.php and adjust for your needs
$ cp vendor/k-ko/send-mail-smtp/config.dist.php email.conf.php
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-22