1from mailer import Mailer
2from mailer import Message
3
4message = Message(From="me@example.com",
5 To="you@example.com",
6 charset="utf-8")
7message.Subject = "An HTML Email"
8message.Html = """This email uses <strong>HTML</strong>!"""
9message.Body = """This is alternate text."""
10
11sender = Mailer('smtp.example.com')
12sender.send(message)
13