sendEmail安装及使用
系统环境
CentOS 7.9
安装
yum安装
yum -y install sendEmail
参数说明
-f 标明邮件发件地址
-t 标明邮件收件地址
-s 标明smtp地址
-u 邮件主题
-o 参数项
-xu 邮箱账户
-xp 邮箱密码
-m 消息内容
使用举例
sendEmail -f aaa@163.com -t bbb@163.com \
-s smtp.163.com:465 -u "test" -o message-content-type=html \
-o message-charset=utf8 -xu aaa@163.com -xp 123456789 -m "test01"