send email using sendmail on CentOS
1、install sendmail
yum -y install sendmail mailx
2、start sendmail service
service sendmail start
3、write mail content in mail.txt
mail -s 'this is mail title' xxx@163.com < mail.txt
Disclaimer
- License under
CC BY-NC 4.0
- Copyright issue feedback
me#imzye.me
, replace # with @ - Not all the commands and scripts are tested in production environment, use at your own risk
- No privacy information is collected here