title: How do I send an email through UNIX sendmail command?
body: <p>I want to execute sendmail command from a shell script file. Content of the email is in a text file.</p>
  
  <p>Syntax to use mail command is:
  /bin/mail -s MailSubject abc.pqr@xyz.com &lt; mail_content.txt</p>
  
  <p>Syntax to use sendmail is:
  echo "Subject: MailSubject" | cat - mail_content.txt | /usr/bin/sendmail abc.pqr@xyz.com</p>
  
  <p>Can you please let me know how I could use sendmail using a syntax which is similar to that of mail command, without using echo command and by specifying subject, to address and mail content file? </p>