MailShake 0.8
Wrappers to sending emails (or testing it) from your Python app
Latest Version: 0.8.1
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 the mail backends of Django (http://djangoproject.com). The original code was BSD licensed. See LEGAL.md for more details.
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| MailShake-0.8.tar.gz (md5) | Source | 2012-01-28 | 134KB | 256 | |
- Author: Juan-Pablo Scaletti
- Home Page: http://github.com/lucuma/MailShake
- License: MIT license (http://www.opensource.org/licenses/mit-license.php)
-
Categories
- Development Status :: 4 - Beta
- Environment :: Web Environment
- Intended Audience :: Developers
- License :: OSI Approved :: MIT License
- Operating System :: OS Independent
- Programming Language :: Python
- Topic :: Internet :: WWW/HTTP :: Dynamic Content
- Topic :: Software Development :: Libraries :: Python Modules
- Package Index Owner: lucuma
- DOAP record: MailShake-0.8.xml
