安装mailx:
1 | yum install mailx |
编辑/etc/mail.rc
1 | set smtp=smtps://mail-m2411.qiye.163.com:465 # 这里填入smtp地址 |
测试
这里我们输入test发给我们的QQ邮件
1 | echo "test" | mail -s "testsubject" 1239328335@qq.com >>/tmp/mailx.log 2>&1 |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 LXY`S BLOG!
评论