User Profile
Collapse
-
pd4860 started a topic Sending an email using smtp lib with body containing multiple lines and variablesin PythonSending an email using smtp lib with body containing multiple lines and variables
I have cracked sending an email containing text and a value from a variable using some code I found online
...Code:SERVER = "server" FROM = "from address" TO = ["to address"] SUBJECT = "subject" TEXT = "Line Count :- " + str(linecount) # Prepare actual message message = """\ From: %s To: %s Subject:
No activity results to display
Show More
Leave a comment: