SendEmail语法

时间:2023-11-15 13:58:08

SendEmail语法

示例:
/usr/local/bin/sendEmail
-f shengwei.tang@joy4you.com -t @qq.com -s smtp.exmail.qq.com -u "${MAIL_USER}" -xu shengwei.tang@joy4you.com -xp 123456 -m $(cat ${LOG_FILE}) >& /dev/null

-f : 指定发件人邮箱;

-t : 指定收件人邮箱;

-s:指定发件人邮箱服务器地址;

-u : 指定邮件标题;

-xu : 指定发送邮件的“用户名”;

-xp : 指定发送邮件的“密码”;

-m : 指定邮件的主题内容;

-o message-charset=utf8  指定邮件内容编码;