Skip to main content

emailHelpers is a wrapper for the smtplib and email packages.

Project description

Upload and Check Python Package
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


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)

Uploaded Source

Built Distribution

emailHelpers-0.2.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

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