I'm trying to send an HTML email from our CentOS server to users. In the long run I'll be building a COBOL program that runs the command to send reports to the user. Here are a few details. CentOS 6.4MAU : Mailx MTA : Postfix 2.6.6Postfix is running a relay through an exchange server. As for what commands I've tried running. The one I've seen the most today has been the following.$ mailx -a 'Content-Type: text/html' -s Command Line Test andyv@example.com < ./bodytext.htmlAfter running the shown command, I get an error saying Content-Type: text/html: No such file or directory. I'm pretty sure that after a certain update they stopped allowing -a as a flag for Content-Type designation. I've also tried adding the 'Content-Type: text/html' to the actual bodytext.html file as the very first line. I'm kind of just at a loss for what I can do to send the HTML email. Some of the sources I've found say that mailx and postfix can't properly send HTML emails. Hopefully that's not the case, but if it is than I'd like to know what your take on other MAU and MTA technologies? 
Sending HTML using mailx with postfix 2.6.6 and centOS 6.4
centos;email;postfix;mailx
Since you seem to have full control over the generated text file, the simplest and probably most portable way would be to involve /usr/sbin/sendmail directly./usr/sbin/sendmail -t < complete-mail.txtThis would require you to add all important headers yourself (From, To, Subject, and Content-Type).  The file should look like this:From: Company <noreply@company.example>To: Customer <name@customer.example>Subject: You are awesomeContent-Type: text/html<html></html>Postfix will add missing but required headers like Date.