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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caba621b1b06e2e3b5db9f86e970ce6823616ba09bfd4adad8d34dd7961f882b
|
|
| MD5 |
5a99e22ee0729bec3cd264428367d6dd
|
|
| BLAKE2b-256 |
a8a61c7f67800a27b66cfd221134531d3726825ec0455852d88dc2e119c5bcb6
|
File details
Details for the file gmail_smtplib_micro-0.1.2-py3-none-any.whl.
File metadata
- Download URL: gmail_smtplib_micro-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d1838785cdcca101ee46061ee2839add2e073a8015429b588801e62fb85c31c
|
|
| MD5 |
9cca9f2fd44157e5f6b6ab9fb5e3a11a
|
|
| BLAKE2b-256 |
ebbea576b279139873028781c168a0d32e20925cb4761b731c9134edd8e4643d
|