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.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

gmail_smtplib_micro-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gmail_smtplib_micro-0.1.0.tar.gz
Algorithm Hash digest
SHA256 14a712c62afec54c56001527ae666d3aac146ff5f90e9702edfa187d322aae0a
MD5 a5a87685700cb657e57613db4adcc6e7
BLAKE2b-256 477d2afb8eb3ae201b5d682618692e0f436755aedac3cdd18b55c90442caddb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gmail_smtplib_micro-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a734d8939d0c78d01b95af761cacaf1f2a00b7a5582ab721e35df619d8ec329
MD5 325287a0af61659e48b748ef0a0f7093
BLAKE2b-256 fea10944a61e245da7baa18fa985e11512eea69b8243e53101bffaabc7ca55a0

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