Advertisement
Guest User

Untitled

a guest
Jan 13th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. def sendMail(self):
  2.  
  3. server = smtplib.SMTP('smtp.gmail.com:587')
  4. password = '******'
  5.  
  6. server.starttls()
  7. server.login('****@gmail.com', password)
  8. server.sendmail('****@gmail.com', ['****@email.com'], self.mailBody)
  9. server.quit()
  10.  
  11. server = smtplib.SMTP('smtp.gmail.com:587')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement