emailHelpers is a wrapper for the smtplib and email packages.
Project description
emailHelpers is a wrapper for the smtplib and email packages. Here's an example for how to send a Gmail message:
from emailHelpers import Mailer, Email
fromaddr = "example@example.com"
toaddr = "person@example.com"
email = Email(fromaddr)
email.setTo(toaddr)
email.setSubject("Example.")
email.setBody("It's an example!")
mailer = Mailer(fromaddr, "YOUR PASSWORD")
text = email.as_string()
mailer.sendMail(text, toaddr)
mailer.quitSelf()
It's simple to integrate in projects. Just note that for Gmail you might need to let less secure apps access your account.
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
emailHelpers-0.2.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for emailHelpers-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45dbe86bb161f3b59a79b147f46f5f597fff43def4d7a4a8cd02862366cfe8d4 |
|
MD5 | fc4e5f8a244476cfb8ee6686c12d9486 |
|
BLAKE2b-256 | 3577c1bf16f0a93c02145eb21ce9d61e35ce229c7929a0fde9ed994805e1078d |