Skip to content

Commit 55f4a77

Browse files
authored
Merge pull request #164 from Anjalisharma8072/myy_branch
replace ()with []
2 parents e677358 + daa8edc commit 55f4a77

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

projects/automate-secret-santa-emails-with-smtp/automate-secret-santa-emails-with-smtp.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Remember to spend 10$-20$ on your gift, but don't stress about it being the perf
135135
Let’s break down this code. The parameters taken in to the function are the name of the sender email, receiver email, and name of the recipient. Let’s see how they are used.
136136

137137
```py
138-
password = os.environ('password')
138+
password = os.environ['password']
139139
body_msg = f'''\
140140
From: {sender}
141141
Subject: Your Secret Santa Present
@@ -218,7 +218,7 @@ import ssl
218218
load_dotenv()
219219
220220
def send_email(sender, receiver, recipient):
221-
password = os.environ('password')
221+
password = os.environ['password']
222222
body_msg = f'''\
223223
From: {sender}
224224
Subject: Your Secret Santa Present
@@ -233,7 +233,7 @@ Remember to spend 10$-20$ on your gift, but don't stress about it being the perf
233233
234234
names_list = ['Sonny', 'Dharma', 'Malcolm', 'Jerry', 'Asiqur', 'Rose', 'Lillian']
235235
names_and_emails = [
236-
['Asiqur', '[email protected]']
236+
['Asiqur', '[email protected]'],
237237
['Dharma', '[email protected]'],
238238
['Jerry', '[email protected]'],
239239
['Lillian', '[email protected]'],

projects/automate-secret-santa-emails-with-smtp/secret_santa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
load_dotenv()
88

99
def send_email(sender, receiver, recipient):
10-
password = os.environ('password')
10+
password = os.environ['password']
1111
body_msg = f'''\
1212
From: {sender}
1313
Subject: Your Secret Santa Present

0 commit comments

Comments
 (0)