Skip to content

Instantly share code, notes, and snippets.

@orestis
Created September 25, 2009 17:33
Show Gist options
  • Save orestis/193700 to your computer and use it in GitHub Desktop.
Save orestis/193700 to your computer and use it in GitHub Desktop.
SERVER = "localhost"
FROM = "sender@example.com"
TO = ["user@example.com"] # must be a list
SUBJECT = "Hello!"
TEXT = "This message was sent with Python's smtplib."
message = """\
From: %s
To: %s
Subject: %s
%s
""" % (FROM, ", ".join(TO), SUBJECT, TEXT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment