11import smtplib
2- import json
3- import time
4- import sys
52try :
63 from lists import (names ,emails )
74except :
107 print ("Debug Info: Created lists.py file to dump names and emails\n " )
118 ListsFileOpen .close ()
129 from lists import (names ,emails )
13- import cgi
1410from email .mime .multipart import MIMEMultipart
1511from email .mime .text import MIMEText
1612
@@ -45,8 +41,8 @@ def save():
4541 theLists .write (str (stringToSave ))
4642 print ("Debug Info: Saved String: " + stringToSave )
4743 def loginSMTP ():
48- theirUsername = str (input ("What is your Gmail account Email address \n " ))
49- password = str (input ("What is your Gmail password \n " ))
44+ theirUsername = str (input ("What is your Gmail account Email address? \n " ))
45+ password = str (input ("What is your Gmail password? \n " ))
5046 print ("Debug Info: Username, " + theirUsername + " Password, " + password )
5147 # Authentication
5248 try :
@@ -63,7 +59,7 @@ def loginSMTP():
6359 print ("Debug Info: Login Failed \n Try changing you allow less secure app access in your gmail account settings, Or reenter your credentials\n \n " )
6460 login = 0
6561 def addEmail ():
66- nameInput = str (input ("What is the Name you would like to append \n " ))
62+ nameInput = str (input ("What is the Name you would like to add to the name list \n " ))
6763 names .append (nameInput )
6864 emailInput = str (input ("What is the email of the reciver\n " ))
6965 emails .append (emailInput )
@@ -133,7 +129,12 @@ def choose():
133129 email .loginSMTP ()
134130 email .choose ()
135131 else :
136- print ("Debug Info: Session Finnished" )
132+ print ("Debug Info: Session Finished, all personal information deleting..." )
133+ theirUsername = ""
134+ password = ""
135+ print (".\n " )
136+ print (".\n " )
137+ print ("All personal information has been deleted" )
137138
138139email .loginSMTP ()
139140email .choose ()
0 commit comments