Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1002215 // Email sender(Python)

Document

import smtplib
def sendmail(from,to,message):  
  fromaddr = from
  toaddr  = to
  msg = message


  username = 'username'  #Maybe create a new email
  password = 'password'  #just for Eleutheria?

  server = smtplib.SMTP_SSL('smtp.gmail.com:465')
  server.starttls()
  server.login(username,password)
  server.sendmail(fromaddr, toaddrs, msg)
  server.quit()

download  show line numbers   

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: 699 / 171
Referenced in: [show references]