Skip to content

Commit cb1ffad

Browse files
committed
We got rid of unnecessary packages and
wrote a function to delete user data after the program is closed
1 parent 9b78bac commit cb1ffad

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

main.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
import smtplib
2-
import json
3-
import time
4-
import sys
52
try:
63
from lists import (names,emails)
74
except:
@@ -10,7 +7,6 @@
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
1410
from email.mime.multipart import MIMEMultipart
1511
from 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 \nTry 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

138139
email.loginSMTP()
139140
email.choose()

0 commit comments

Comments
 (0)