linux发送邮件的方法

来源:互联网 发布:淘宝卖家运费险多少钱 编辑:程序博客网 时间:2024/05/22 05:04
[xxx@xx-xx-1-36 operation]$ vi ~/.mailrc
set from=xxxx@xxxx-inc.com

set smtp=smtp.xxx-inc.com:25


设置端口号就可以正常发送邮件了。

发送方法:

echo "hello" | mail -s "test" xcxvc@dfdf-inc.com



大笑

0 0