Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def send_mail(self,event):
- content = self.expText.GetValue()
- mail = smtplib.SMTP('smtp.gmail.com',587)
- mail.ehlo()
- mail.starttls()
- mail.login('.....@gmail.com','password')
- mail.sendmail('.....@gmail.com','....@yahoo.com',content)
- mail.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement