linux下发送邮件

1、开启sendmail,无需配置

2、使用命令即可发送邮件

mail -s "title" [email protected] < test.txt       #title为标题,test.txt为正文

echo "Content:The work is done" | mail -s "This is subject" [email protected]  #Content:The work is done为正文,This is subject为标题


你可能感兴趣的:(linux,title)