Postcard is a simple package to send html styled emails. It was created to send visually good emails about Jenkins builds.
Install the package with pip from a local folder.
cd Postcard
pip install .
Then use the package...
>>> from postcard import Postcard
>>> from postcard.mailer import Mailman
>>> my_postcard = Postcard('Hello', 'sender@python.py', ['recipient@python.py'])
>>> my_postcard.create('<h1>Hello</h1>', 'Hello')
>>> mailman = Mailman('smtp.python_host.py', 0)
>>> mailman.connect()
>>> mailman.deliver('sender@python.py', ['recipient@python.py'], my_postcard.package())