I have a requirement where I want to print the .csv file output in the form of the table in the mail body. The challenge here for me is that I cannot place the table inside the existing body. The body of the mail would be in the below format.
Hi All,
The below table gives an idea about the percentage of the consecutive days,
Day Date Percentage
Day1 04/26/2020 2.3
Day 2 04/27/2020 3.4
Please do not reply to this mail.
I am able to print the strings in the mail but I am struggling to print the table output.
Hello,
You may use Content-Type: text/html in mailx or sendmail tool and format the content of your email using HTML tags. Give it a try and let us know. Thanks
I have created an html file. But I am not able to incorporate the table along the rest of the message. Basically after the salutation and string after that. Can you let me know how to incorporate within a message.