Skip to content

Commit 8889c8c

Browse files
authored
Update email_automation.py
1 parent ccb22d0 commit 8889c8c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Automated_email/email_automation.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@ def main():
66

77
# Get sender's email and password
88
sender_email = input('Enter your email: ')
9-
10-
print('If you have 2-factor authentication turned on, make sure to generate an app password. \nOtherwise, enter your password.')
11-
sender_password = input('Enter the Password: ')
12-
9+
1310
# Security Warning
1411
print("\n** SECURITY WARNING **")
1512
print("Entering your email password directly in the script can be a security risk.")
1613
print("Consider using app passwords for Gmail or other secure authentication methods.")
1714
print("Do not share your scripts containing passwords with others.")
1815
print("Continue only if you understand and accept these risks.\n")
1916

17+
print('If you have 2-factor authentication turned on, make sure to generate an app password. \nOtherwise, enter your password.')
18+
sender_password = input('Enter the Password: ')
19+
20+
21+
2022
# Get receiver's emails
2123
receivers = input('Enter the receiver\'s emails separated by commas: ')
2224
receiver_emails = [x.strip() for x in receivers.split(',')]

0 commit comments

Comments
 (0)