Last updated:
0 purchases
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","[email protected]")
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,"[email protected]")
Examples of the configuration and email file can be shown via:
from gmail_smtplib_micro import ExampleEmail, ExampleConfiguration
print(ExampleEmail().show())
print(ExampleConfiguration().show())
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.