No, I'm not working.
content-type is a SMTP mail header field that describes the data being sent.
Otherwise the mail client has no idea on the format of the data. The file extension means nothing because it is not part of the message as we are talking about the content, not an attachment.
Search on this site and you will find examples....
basically the stdin to mailx is smtp-header fields followed by the actual content