title: send inline html with mailx (Heirloom mailx 12.4)
body: <p>I am trying (to no avail) to send inline html with mailx utility (Heirloom mailx 12.4). Email is being sent in plain text.</p>
  <ul>
  <li>My mailx version does not support -a for header (used for attachments
  instead)</li>
  <li>As non root user, options such as: configuring sendmail for
  smtp or installing 3rd party like mutt arent available</li>
  <li>Linux Distro: RHEL 6 (Santiago)</li>
  </ul>
  <p>EDIT: After a few hours I found this post which has allowed to go one step further. Email is now sent in HTML but contains header in text.
  Script below:</p>
  <pre><code>mailx -v -S smtp=SERVER -s &quot;$(echo -e &quot;This is the subject v1\nContent-Type: text/html\nMIME-Version: 1.0\nContent-Disposition: inline&quot;)&quot; -r FROM TO &lt; htmlmail.txt
  </code></pre>
  <p>Source: <a href="https://unix.stackexchange.com/questions/384536/html-email-from-heirloom-mailx-on-linux">https://unix.stackexchange.com/questions/384536/html-email-from-heirloom-mailx-on-linux</a></p>
  <p><a href="https://i.stack.imgur.com/Jb9cG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jb9cG.png" alt="Here's what I mean by &quot;Headers are pushed down into body&quot;" /></a></p>