Python Forum
Need help to copy content of the text file into the body of the email as html
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help to copy content of the text file into the body of the email as html
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Copy xml content from webpage and save to locally without special characters Nik1811 14 601 Mar-26-2024, 09:28 AM
Last Post: Nik1811
  Copy Paste excel files based on the first letters of the file name Viento 2 348 Feb-07-2024, 12:24 PM
Last Post: Viento
Thumbs Up Convert word into pdf and copy table to outlook body in a prescribed format email2kmahe 1 705 Sep-22-2023, 02:33 PM
Last Post: carecavoador
  Need to replace a string with a file (HTML file) tester_V 1 699 Aug-30-2023, 03:42 AM
Last Post: Larz60+
  Tkinterweb (Browser Module) Appending/Adding Additional HTML to a HTML Table Row AaronCatolico1 0 877 Dec-25-2022, 06:28 PM
Last Post: AaronCatolico1
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 1,064 Dec-15-2022, 04:32 PM
Last Post: Larz60+
  is it possible to copy image from email and place into excel file? cubangt 3 1,212 Nov-30-2022, 05:11 PM
Last Post: snippsat
  Please help me [copy and paste file from src to dst] midomarc 2 961 Nov-24-2022, 10:13 PM
Last Post: midomarc
  Modify values in XML file by data from text file (without parsing) Paqqno 2 1,577 Apr-13-2022, 06:02 AM
Last Post: Paqqno
  Extracting Specific Lines from text file based on content. jokerfmj 8 2,860 Mar-28-2022, 03:38 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020