Skip to content

How to send email using sendmail on CentOS

homepage-banner

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@gmail.com < mail.txt
Feedback







Small world. Big idea!
  • Welcome to visit the knowledge base of SRE and DevOps!
  • License under CC BY-NC 4.0
  • Made with Material for MkDocs and improve writing by generative AI tools
  • Copyright issue feedback me#imzye.com, replace # with @