title: Sending simple message body + file attachment using Linux Mailx
body: <p>I am writing a <code>shell script</code> to send an email using Linux <code>Mailx</code>, the email must contain a <strong>file attachment</strong> and a <strong>message body</strong>.</p>
  
  <p>Currently sending an email with an attachment:</p>
  
  <pre><code>output.txt | mail -s "Daily Monitoring" james@dell.com
  </code></pre>
  
  <p>I wish to add a message body. How should i?</p>
  
  <p>Linux Mailx:</p>
  
  <pre><code>mail [-eIinv] [-a header] [-b addr] [-c addr] [-s subj] to-addr
  </code></pre>