Ubuntu下使用heirloom-mailx发送邮件

基本使用

1
2
3
4
5
6
7
8
9
10
11
# install
sudo apt-get install heirloom-mailx
# configure
vim /etc/s-nail.rc
set from=${demo@qq.com}
set smtp=smtps://smtp.qq.com:465
set smtp-auth-user=${demo@qq.com}
set smtp-auth-password=${password}
set smtp-auth=login
# send mail
echo "mail content" | mail -vs "mail subject" ${target@mail.com}