I have cracked sending an email containing text and a value from a variable using some code I found online
However I would like to add extra lines for other totals. I don't seem to be able to figure out how to do this.
Any help would be greatly appreciated.
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: %s %s """ % (FROM, ", ".join(TO), SUBJECT, TEXT) server = smtplib.SMTP(SERVER) server.sendmail(FROM, TO, message) server.quit()
Any help would be greatly appreciated.
Comment