'Send email using mail or mailx or sendmail containing two different html files - One as body and other as attachment - in RHEL 6.10

I am trying to send an email from linux machine to my Team's DL. The email should contain one html file as an attachment and one html file as a body.

I am using the below command but it is sending the data in plain text with html tags.

mailx -a object_details.html -s "Subject of email" [email protected] < license_report.html

Anyone on this planet can help me on this please?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source