![]() |
Need help to copy content of the text file into the body of the email as html - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Need help to copy content of the text file into the body of the email as html (/thread-8517.html) |
Need help to copy content of the text file into the body of the email as html - mohaneraj - Feb-23-2018 Guys I have 2 text files created by another scripting program....I want to copy those the content of the text file into the body of the html file as email. For example... 1.Failed_Devices.txt have 192.168.145.2 server1 serverhost2 blah 2. Failed_URL.txt have server.com:443 hostname3.ca blah blah.com I want to send the content of those 2 text file in an email using python as follow Sender : [email protected] REciever : [email protected] Subjet : failed report In the body of the email I want like this Failed devices 192.168.145.2 server1 serverhost2 blah URL not reacheable links server.com:443 hostname3.ca blah blah.com |