Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Dramatically simplify sending email from your python app

Project description

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

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


from mailshake import SMTPMailer

mailer = SMTPMailer()
    text_content='Hello world!',
    to=['', '']

You can also compose several messages and send them at the same time:

from mailshake import SMTPMailer, EmailMessage

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


Mailers availiable:
  • SMTPMailer
  • AmazonSESMailer


  • ToConsoleMailer (prints the emails in the console)
  • ToFileMailer (save the emails in a file)
  • ToMemoryMailer (for testing)
  • DummyMailer (does nothing)
copyright:Juan-Pablo Scaletti.
license:MIT, see LICENSE 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.

Files for MailShake, version 0.17.0
Filename, size File type Python version Upload date Hashes
Filename, size MailShake-0.17.0.tar.gz (17.1 kB) File type Source Python version None Upload date Hashes View hashes

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