Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Shell Script - Sending a HTML body email using mailx command

User_N2TQLNov 19 2017 — edited Nov 20 2017

I am having an issue while sending HTML format email - in mail body.

Receiving this email as text format body instead of HTML.

I am having similar HTML format report mail which is working fine for another script and receiving HTML body email.

Command: mailx -s "$(echo -e "$Subject\nContent-Type: text/html")" -S smtp=smtp://mail.ab.xyz.com "XYZ.com" < XYZ.html

Please suggest if any more changes can be done to this command.

Note: Sendmail/Postfix is not configured. I need suggestion with mailx or mail command.

Mail Body as below: Content-Type: text/html Message-ID: <5a11832a.gyypQtWniSUe8SvL%siebel@ZHQEL01P21.kw.XYZ.com> User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 18 2017
Added on Nov 19 2017
7 comments
31,651 views