stevleibelt/php_send_email_via_command_line

免费作为自由命令行脚本来发送邮件

1.8.2 2022-11-23 22:23 UTC

This package is auto-updated.

Last update: 2024-09-14 08:33:42 UTC


README

这是一个免费作为自由的命令行工具,用于简化通过命令行发送邮件。感谢 Swiftmailer。这是一个使用优秀的 Swiftmailer 的命令行前端。

当前更改日志可以在 这里 找到。

用法

send_mail "<email address of the sender>" "<email address of the recipient>" "<subject>" "<path/to/the/file.txt|html>" [--bcc=<email address of an blind carbon copy - can be used multiple times>] [--cc=<email address of a carbon copy - can be used multiple times>][-v|--verbose] [--attachment=<path to a file you want to attach> - can be used multiple times]

手册

名称

send_mail - 通过命令行发送邮件

概要

send_mail [FROM] [TO] [主题] [内容文件路径] [选项]

描述

通过命令行发送邮件。内容存储在文件中以简化使用。文本或 HTML 会自动检测。

作者

由 Stev Leibelt 编写。

报告错误

将错误报告发送到 https://github.com/stevleibelt/php_send_email_via_command_line/issues

版权

版权所有 © 2015 自由软件基金会,Inc。许可证 GPLv3+:GNU GPL 版本 3 或更高 http://gnu.org/licenses/gpl.html

这是一个自由软件:您有自由更改和重新分发它的权利。在法律允许的范围内,没有任何担保。

安装

手动

mkdir -p /opt/stevleibelt
cd /opt/stevleibelt
git clone https://github.com/stevleibelt/php_send_email_via_command_line
composer install

使用 Packagist

composer require stevleibelt/php_send_email_via_command_line

配置

目前,没有合并 local.dist.phplocal.php。如果您创建了 local.php,则需要复制整个配置部分。

#only do it if you really need it.
cp configuration/local.dist.php configuration/local.php
#adapt it to your needs
vim configuration/local.php