Advertisement
Guest User

Untitled

a guest
Jan 27th, 2018
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. # Import requests (to download the page)
  2. import requests
  3.  
  4. # Import Time (to add a delay between the times the scape runs)
  5. import time
  6.  
  7. # Import smtplib (to allow us to email)
  8. import smtplib
  9. print("Ok")
  10.  
  11. def sendnotif(subject,text):
  12. msg = 'Subject: {}\n\n{}'.format(subject, text)
  13. fromaddr = 'yourlaundryupdates@gmail.com'
  14. toaddrs = 'nekoofkuroness@gmail.com'
  15. server = smtplib.SMTP('smtp.gmail.com', 587)
  16. server.ehlo()
  17. server.starttls()
  18. server.login("yourlaundryupdates@gmail.com", "gokoururi420")
  19. server.sendmail(fromaddr, toaddrs, msg)
  20. server.quit()
  21.  
  22. subject=""
  23. text=""
  24. sendnotif(subject,text)
  25. print("Ok")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement