I'm using pandas to get csv to html


import pandas as pd
import sys
import json
sys.stdout = open('output.html','wt')

df = pd.read_csv('users.csv')

For another file i'm using same scrip just changing csv and html file name

I can send content of one html file as email body

mailx -s "The Subject is $( echo -e "\nContent-Type: text/html")" some@email < output.html

Is it possible to send those multiple html files in same email, not as attachments but in email body ?, so email body should be like this:


output.html content


output2.html content

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.