Is there a way to send html file into a mail body using mail
or mailx
command in Linux. I googled around and did not find anything that's working though there are many threads. on of the thread i see Mailx send html message but nothing works.
What i used are below commands but not working as expected.
$ mail -s "$(echo -e "This is Subject\nContent-Type: text/html")" kulfi@tap.com < OneView_Sheet.html
$ mailx -s "$(echo -e "This is Subject\nContent-Type: text/html")" kulfi@tap.com < OneView_Sheet.html
The above command instead sending the html source content as follows ...
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>OV_NAME</th>
<th>Composer_Firmware</th>
<th>SAS_20_Firmware_Version</th>
<th>SAS12_Firmware_Version</th>
<th>VC_Firmware_Version</th>
</tr>
</thead>
<tbody>