Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sendMail(self):
- server = smtplib.SMTP('smtp.gmail.com:587')
- password = '******'
- server.starttls()
- server.login('****@gmail.com', password)
- server.sendmail('****@gmail.com', ['****@email.com'], self.mailBody)
- server.quit()
- server = smtplib.SMTP('smtp.gmail.com:587')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement