malier module python

Solutions on MaxInterview for malier module python by the best coders in the world

showing results for - "malier module python"
Adriana
16 Jan 2019
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