Send email using sendmail
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' [email protected] < mail.txt
Some of the content is generated by AI, please be cautious in identifying it.