Sending Emails
This is an example the call the libraries make to the extension to send the mail.pull/16/head
parent
a277a4493b
commit
9339c28321
|
@ -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')
|
Loading…
Reference in New Issue