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.
Did you know SMTP has a limit of 1000 recipients per email? This library does ;)
These wrappers make sending email extra quick, easy to test email sending during development, and provides support for platforms that can’t use SMTP.
Usage:
from mailshake import SMTPMailer mailer = SMTPMailer() mailer.send( subject='Hi', text_content='Hello world!', from_email='from@example.com', to=['mary@example.com', 'bob@example.com'] )
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.', 'from@example.com', ['mary@example.com', 'bob@example.com'] ) email_msg.attach("picture.jpg") messages.append(email_msg) … mailer.send_messages(messages)
- Mailers availiable:
SMTPMailer
AmazonSESMailer
and:
ToConsoleMailer (prints the emails in the console)
ToFileMailer (save the emails in a file)
ToMemoryMailer (for testing)
DummyMailer (does nothing)
- copyright:
- license:
MIT, see LICENSE for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file MailShake-0.14.0.tar.gz
.
File metadata
- Download URL: MailShake-0.14.0.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 424fd5fc889a91d0769e19a6d2600a8091a2c5f9adb3be4fa35bc02df5537cbe |
|
MD5 | 1199604e48a1244968d6e3a0fa142c7b |
|
BLAKE2b-256 | 2616d6663f14f62e8725cafd4c8d1aaf9527c1052620d2ec1f556ce915141f39 |