Skip to content

micropicostack/Postcard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postcard

What is it?

Postcard is a simple package to send html styled emails. It was created to send visually good emails about Jenkins builds.

Quick Start

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())

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages