Skip to main content

A wrapper for sending emails via gmail

Project description

python_snail

Provides a wrapper class for smtplib to handle GMail usage

Set up a configuration file and pass through email data

from gmail_smtplib_micro import GmailSMTPLib

g = GmailSMTPLib("pysnail.conf")
g.send_file("file.email","example@example.com")

Can also be invoked with a provided email object

from gmail_smtplib_micro import GmailSMTPLib, Email

subject = "The string of the subject"
body = "This is the body of the email\nIncluding line breaks"

e = Email(subject, body)

g = GmailSMTPLib("pysnail.conf")
g.send_object(e,"example@example.com")

Examples of the configuration and email file can be shown via:

from gmail_smtplib_micro import ExampleEmail, ExampleConfiguration

print(ExampleEmail().show())
print(ExampleConfiguration().show())

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

gmail_smtplib_micro-0.1.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

gmail_smtplib_micro-0.1.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file gmail_smtplib_micro-0.1.2.tar.gz.

File metadata

  • Download URL: gmail_smtplib_micro-0.1.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.5

File hashes

Hashes for gmail_smtplib_micro-0.1.2.tar.gz
Algorithm Hash digest
SHA256 caba621b1b06e2e3b5db9f86e970ce6823616ba09bfd4adad8d34dd7961f882b
MD5 5a99e22ee0729bec3cd264428367d6dd
BLAKE2b-256 a8a61c7f67800a27b66cfd221134531d3726825ec0455852d88dc2e119c5bcb6

See more details on using hashes here.

File details

Details for the file gmail_smtplib_micro-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for gmail_smtplib_micro-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0d1838785cdcca101ee46061ee2839add2e073a8015429b588801e62fb85c31c
MD5 9cca9f2fd44157e5f6b6ab9fb5e3a11a
BLAKE2b-256 ebbea576b279139873028781c168a0d32e20925cb4761b731c9134edd8e4643d

See more details on using hashes here.

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