Sending Emails

This is an example the call the libraries make to the extension to send the mail.
pull/16/head
TheDragonkeeper 2017-11-04 12:49:48 +00:00 committed by GitHub
parent a277a4493b
commit 9339c28321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
import sys
sys.path.append("/root/extensions")
from sendemail.py import send_mail
send_mail('im-just-a-squirrel@giving-you-my-nuts.net', 'EmailTo@SendTo.net',
'You Got My Nuts',
'Enjoy this package',
files=["/Path/To/My/Nuts.txt"],
server='MAIL.SERVER.com', username='USERNAME', password='PASSWORD')