Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- def cls():
- print('\n'*10)
- print('\n'*10)
- print('\n'*10)
- print('\n'*10)
- print('\n'*10)
- def main():
- print("-------------------")
- print("| Sub 2 Pewds |")
- print("-------------------")
- print('\n'*10)
- password = input('Your email password ---> ')
- cls()
- x = 1
- fromaddress = input('Your email address ---> ')
- databaseFileName = input('databaseFileName ---> ')
- msg = 'Do your part! Subscribe to pewdiepie in the name of the internet!'
- username = fromaddress
- server = smtplib.SMTP('smtp.gmail.com:587')
- server.starttls()
- server.login(username,password)
- studentDatabase = open(databaseFileName, 'r')
- emails = studentDatabase.readlines()
- cls()
- for email in emails:
- server.sendmail(fromaddress,email,msg)
- print("Message " + str(x) + " sent")
- x += 1
- server.quit()
- spam = input()
- cls()
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement