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 42e7c2a commit 00c4004Copy full SHA for 00c4004
Python/Send_Emails/send_emails.py
@@ -1,6 +1,7 @@
1
#!/usr/bin/python
2
3
import smtplib
4
+import getpass
5
6
# The smtp module (Simple Mail Transfer Protocol) enables sending emails in python
7
# The sender's email must be configured to less secure apps.
@@ -14,8 +15,8 @@
14
15
receiver = input("Enter the receiver's Email-ID : ")
16
17
# "Sender's password"
-password = input("Enter the sender's password : ")
18
-
+password = getpass.getpass(prompt='Enter the sender's password : ')
19
+
20
# "Subject of the Email"
21
subject = input("Enter the subject of the email : ")
22
0 commit comments