Advertisement
Guest User

Untitled

a guest
Apr 10th, 2017
624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. import smtplib
  2.  
  3. '''
  4. Email´s :
  5.  
  6. < KIM >
  7. kim.philipp@icloud.com
  8.  
  9. < DAVID >
  10. david.aksoy83@googlemail.com
  11. david-aksoy83@gmx.com
  12.  
  13. < MEINE >
  14. s.hawranke0601@gmail.com
  15. s.hawranke0701@gmail.com
  16. s.hawranke0801@gmail.com
  17. email.spam1337@gmail.com
  18. '''
  19.  
  20.  
  21. def email_send(counter, pw, a):
  22. amount_emails = int(input("Please enter the amount of e-mails you wanna send. \n"))
  23. print("- - - - - - - - - - - - - - - - - - - - ")
  24. email_message = input("Enter your email text message. \n")
  25. print("- - - - - - - - - - - - - - - - - - - - ")
  26. while counter <= amount_emails:
  27. mail = smtplib.SMTP("smtp.gmail.com", 587)
  28. mail.ehlo()
  29. mail.starttls()
  30. mail.login("alexvmr1@gmail.com", pw[0])
  31. mail.sendmail("alexvmr1@gmail.com", a, email_message)
  32. print(counter, "email´s have already been sent")
  33. counter += 1
  34. print("- - - - - - - - - - - - - - - - - - - - ")
  35.  
  36.  
  37. def email_target_question():
  38. email_target = input("Enter your target email [ David / Kim / Ich / spam acc]\n")
  39. print("- - - - - - - - - - - - - - - - - - - - ")
  40. if email_target == "david":
  41. email_target = ("david.aksoy83@googlemail.com")
  42. elif email_target == "kim":
  43. email_target = ("kim.philipp@icloud.com")
  44. elif email_target == "ich":
  45. email_target = ("s.hawranke0601@gmail.com")
  46. elif email_target == "spam acc":
  47. email_target = ("email.spam1337@gmail.com")
  48. else:
  49. pass
  50. return email_target
  51.  
  52.  
  53. counter = 1
  54. email_counter = 0
  55.  
  56.  
  57. while True:
  58. pw = []
  59. with open("EmailPW.txt", "r") as my_file:
  60. for passwords in my_file:
  61. pw.append(passwords)
  62. try:
  63. a = email_target_question()
  64. print(a)
  65. email_send(counter, pw, a)
  66. # email_change_question = input("Do you wanna change the mail ? [ Y / N / EXIT ]\n")
  67. # print("- - - - - - - - - - - - - - - - - - - - ")
  68. # if email_change_question == "y":
  69. # email_change = input("Which email do you wanna send to ?\n")
  70. # print("- - - - - - - - - - - - - - - - - - - - ")
  71. # a = email_change
  72. # elif email_change_question == "n":
  73. # pass
  74. # elif email_change_question == "exit":
  75. # break
  76. # email_counter += 1
  77. except:
  78. print("Please enter a valid information")
  79. print("- - - - - - - - - - - - - - - - - - - - ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement