Skip to main content

Send emails from your Shake app.

Project description

=================
MailShake
=================

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.

Usage::

from mailshake import EmailMessage, SMTPMailer

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

)
email_msg.attach("picture.jpg")

mailer = SMTPMailer()
mailer.send(email_msg)


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


-------------------
Much of the code was based on the mail code from Django (http://djangoproject.com). The original code was BSD licensed

Project details


Download files

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

Source Distribution

MailShake-0.4.tar.gz (136.0 kB view details)

Uploaded Source

File details

Details for the file MailShake-0.4.tar.gz.

File metadata

  • Download URL: MailShake-0.4.tar.gz
  • Upload date:
  • Size: 136.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for MailShake-0.4.tar.gz
Algorithm Hash digest
SHA256 106e531d59e0d549a9da6dfa116d4a74a3c4f1a8fd4f41004b2a6934ea61227b
MD5 73e09f2d3063b96622fbcfdba6b5c42e
BLAKE2b-256 923c222242194caff3df667f0b70e15953bd5157772ce5cdb48101e042220451

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page