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', '[email protected]', ['[email protected]'])
>>> my_postcard.create('<h1>Hello</h1>', 'Hello')
>>> mailman = Mailman('smtp.python_host.py', 0)
>>> mailman.connect()
>>> mailman.deliver('[email protected]', ['[email protected]'], my_postcard.package())