Update Email_bomber.py

This commit is contained in:
Anonymous 2020-10-01 15:05:30 +05:30
parent 2bf5cc6366
commit 4135632574
1 changed files with 9 additions and 1 deletions

View File

@ -14,14 +14,22 @@ try:
message = input("Enter Message:")
counter = int(input("How many message you want to send?:"))
# gmail of outlook
s_ = input('Select the service provider (Gmail / Outlook): ').lower()
if s_ == "gmail":
mail = smtplib.SMTP('smtp.gmail.com',587)
elif s_ == "outlook":
mail = smtplib.SMTP('smtp.office365.com',587)
for x in range(0,counter):
print("Number of Message Sent : ", x+1)
mail = smtplib.SMTP('smtp.gmail.com',587)
mail.ehlo()
mail.starttls()
mail.login(email,password)
mail.sendmail(email,bomb_email,message)
time.sleep(1)
mail.close()
except Exception as e:
print("Something is wrong, please Re-try Again with Valid input.")