Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- smtpUser = 'plzFeedKenya@gmail.com'
- smtpPass = '*********'
- toAdd = ['Our_e-mails']
- fromAdd = smtpUser
- body = '*woof woof* Please feed me dinner *woof woof*'
- s = smtplib.SMTP('smtp.gmail.com', 587)
- s.ehlo()
- s.starttls()
- s.ehlo()
- s.login(smtpUser,smtpPass)
- s.sendmail(fromAdd, toAdd, '\n\n' + body)
- s.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement