gmail-smtplib-micro 0.1.2

Creator: bradpython12

Last updated:

0 purchases

TODO
Add to Cart

Description:

gmailsmtplibmicro 0.1.2

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())

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.