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(amount_emails, email_message, counter, pw, email_target):
- while counter <= amount_emails:
- mail = smtplib.SMTP("smtp.gmail.com", 587)
- mail.ehlo()
- mail.starttls()
- mail.login("email.spam1337@gmail.com", pw[0])
- mail.sendmail("email.spam1337@gmail.com", email_target, email_message)
- mail.close
- print(counter, "email´s have already been sent")
- counter += 1
- print("- - - - - - - - - - - - - - - - - - - - ")
- def email_target_question(email_target):
- 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
- email_target = None
- counter = 1
- email_counter = 0
- while True:
- pw =[]
- with open("EmailPW.txt", "r") as myfile:
- for passwords in myfile:
- pw.append(passwords)
- try:
- print(email_target_question(email_target))
- print(email_target)
- 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("- - - - - - - - - - - - - - - - - - - - ")
- email_send(amount_emails, email_message, counter, pw, email_target)
- 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("- - - - - - - - - - - - - - - - - - - - ")
- email_target = 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("- - - - - - - - - - - - - - - - - - - - ")
- print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement