We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a57d4ac commit ef4e419Copy full SHA for ef4e419
emailbomber.py
@@ -1,5 +1,6 @@
1
# Built-in libraries
2
import smtplib
3
+import getpass
4
from os import access, path, mkdir
5
from email.message import EmailMessage
6
@@ -10,7 +11,7 @@
10
11
if not path.exists("User_Credentials"):
12
# If User_Credentials does not exist, asks for user credentials
13
sender = input("Enter the Gmail address you would like to send emails from (example@gmail.com) -> ")
- app_password = input("Enter the app's password (xxxx xxxx xxxx xxxx) -> ")
14
+ app_password = getpass.getpass("Enter the app's password (xxxx xxxx xxxx xxxx) -> ")
15
else:
16
# Otherwise, reads saved user credentials
17
sender = open("User_Credentials/sender.txt", "rt").read()
0 commit comments