1 | import smtplib |
2 | def sendmail(from,to,message): |
3 | fromaddr = from |
4 | toaddr = to |
5 | msg = message |
6 | |
7 | |
8 | username = 'username' #Maybe create a new email |
9 | password = 'password' #just for Eleutheria? |
10 | |
11 | server = smtplib.SMTP_SSL('smtp.gmail.com:465')
|
12 | server.starttls() |
13 | server.login(username,password) |
14 | server.sendmail(fromaddr, toaddrs, msg) |
15 | server.quit() |
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002215 |
| Snippet name: | Email sender(Python) |
| Eternal ID of this version: | #1002215/1 |
| Text MD5: | e0c02f27fd6dfd0a41fdea6510ea3b0a |
| Author: | bgrgndz |
| Category: | |
| Type: | Document |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-12-28 20:21:19 |
| Source code size: | 373 bytes / 15 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 1124 / 288 |
| Referenced in: | [show references] |