mailx命令行发送邮件

set from=xxx@qq.com
set smtp=smtp.qq.com
set smtp-auth-user=xxx@qq.com
set smtp-auth-password=xxx
set smtp-auth=login

echo "邮件内容" | mailx -s "邮件标题" xxx@qq.com

发表新评论