Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- '''
- Email´s :
- < KIM >
- kim.philipp@icloud.com
- < DAVID >
- david.aksoy83@googlemail.com
- david-aksoy83@gmx.com
- < MEINE >
- s.hawranke0601@gmail.com
- s.hawranke0701@gmail.com
- s.hawranke0801@gmail.com
- email.spam1337@gmail.com
- '''
- def email_send(counter, pw, a):
- amount_emails = int(input("Please enter the amount of e-mails you wanna send. \n"))
- print("- - - - - - - - - - - - - - - - - - - - ")
- email_message = input("Enter your email text message. \n")
- print("- - - - - - - - - - - - - - - - - - - - ")
- while counter <= amount_emails:
- mail = smtplib.SMTP("smtp.gmail.com", 587)
- mail.ehlo()
- mail.starttls()
- mail.login("alexvmr1@gmail.com", pw[0])
- mail.sendmail("alexvmr1@gmail.com", a, email_message)
- print(counter, "email´s have already been sent")
- counter += 1
- print("- - - - - - - - - - - - - - - - - - - - ")
- def email_target_question():
- email_target = input("Enter your target email [ David / Kim / Ich / spam acc]\n")
- print("- - - - - - - - - - - - - - - - - - - - ")
- if email_target == "david":
- email_target = ("david.aksoy83@googlemail.com")
- elif email_target == "kim":
- email_target = ("kim.philipp@icloud.com")
- elif email_target == "ich":
- email_target = ("s.hawranke0601@gmail.com")
- elif email_target == "spam acc":
- email_target = ("email.spam1337@gmail.com")
- else:
- pass
- return email_target
- counter = 1
- email_counter = 0
- while True:
- pw = []
- with open("EmailPW.txt", "r") as my_file:
- for passwords in my_file:
- pw.append(passwords)
- try:
- a = email_target_question()
- print(a)
- email_send(counter, pw, a)
- # email_change_question = input("Do you wanna change the mail ? [ Y / N / EXIT ]\n")
- # print("- - - - - - - - - - - - - - - - - - - - ")
- # if email_change_question == "y":
- # email_change = input("Which email do you wanna send to ?\n")
- # print("- - - - - - - - - - - - - - - - - - - - ")
- # a = email_change
- # elif email_change_question == "n":
- # pass
- # elif email_change_question == "exit":
- # break
- # email_counter += 1
- except:
- print("Please enter a valid information")
- print("- - - - - - - - - - - - - - - - - - - - ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement