Sending Emails

This is an example the call the libraries make to the extension to send the mail.
This commit is contained in:
TheDragonkeeper
2017-11-04 12:49:48 +00:00
committed by GitHub
parent a277a4493b
commit 9339c28321

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