jewettg
jewettg

Reputation: 1163

Send HTML email with mail, mailx, or sendmail?

All..

I am asking this question, and yes it might look like a newbie posting a question without search first, but I have a caveat that I need to be considered before marking this as a repeat or duplicate of similar posted questions!

I have "googled" and searched on stackoverflow, and tried just about every combination of parameters and methods to get an email sent by either mail, mailx, or sendmail (don't care, will even consider other methods), and have the client recognize the email as HTML and properly display the message along with an attachment.

My request is to find a way to send an HTML email AND attach a file at the same time, with a single command.

I am using mail and mailx "12.4 7/29/08", and I can not figure out what version of sendmail. I am using "Linux 2.6.32-504.8.1.el6.x86_64" (RHEL 6.6 Santiago) build of RHEL.

Looking for any of the following?

I am stumped. Many of the posts I found have told me there is a large variety of mail and mailx versions and distributions that have different patterns. I am not porting this from machine to machine, and not looking for portable bash script code. However, I like writing clean code that is fairly portable and standard, but that would be like having my pie and eating it too! :-)

Upvotes: 0

Views: 9576

Answers (1)

x93
x93

Reputation: 36

Mailx html content is in this theme Mailx send html message

Attachment her http://www.unix.com/solaris/183753-mailx-attachment.html

I understood this correctly?

Upvotes: 1

Related Questions