Advertisement
Guest User

Untitled

a guest
Jun 16th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1. #The only way to fail is to quit
  2. #The asteroid to kill this dinosaur is still in orbit
  3. #THERE are ALWAYS to WAYS wrong or right :) like capital A and small a always keep smiling GOOD for health
  4. #Ball is in always your coat you dont know how play with it
  5. import sys
  6. import smtplib
  7. username = sys.argv[1]
  8. password = sys.argv[2]
  9. to = sys.argv[4]
  10. n = sys.argv[5]
  11. try:
  12.     server = smtplib.SMTP('smtp.gmail.com')
  13.     server.ehlo()
  14.     server.starttls()
  15.     server.login(username,password)
  16. except:
  17.     print("Error Unable to send mail")
  18.     sys.exit(100)
  19.  
  20. for i in range(int(n)):
  21.     server.sendmail(username,to,'i am 100% homo')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement