Skip to main content

Wrappers to sending emails (or testing it) from your Python app

Project description

Although Python makes sending email relatively easy via the smtplib module, this bundle provides a couple of light wrappers over it.

These wrappers are provided to make sending email extra quick, to make it easy to test email sending during development, and to provide support for platforms that can’t use SMTP.


from mailshake import EmailMessage, SMTPMailer

email_msg = EmailMessage(
    "Weekend getaway",
    'Here's a photo of us from our Europe trip.',
    ['', ''],


mailer = SMTPMailer()

Severals other mailers are available for testing: ToConsoleMailer, ToFileMailer, ToMemoryMailer and DummyMailer (does nothing).


Much of the code was based on the the mail backends of Django ( The original code was BSD licensed. See for more details.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
MailShake-0.8.tar.gz (137.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page