Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Remember to spend 10$-20$ on your gift, but don't stress about it being the perf
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.

```py
password = os.environ('password')
password = os.environ['password']
body_msg = f'''\
From: {sender}
Subject: Your Secret Santa Present
Expand Down Expand Up @@ -218,7 +218,7 @@ import ssl
load_dotenv()

def send_email(sender, receiver, recipient):
password = os.environ('password')
password = os.environ['password']
body_msg = f'''\
From: {sender}
Subject: Your Secret Santa Present
Expand All @@ -233,7 +233,7 @@ Remember to spend 10$-20$ on your gift, but don't stress about it being the perf

names_list = ['Sonny', 'Dharma', 'Malcolm', 'Jerry', 'Asiqur', 'Rose', 'Lillian']
names_and_emails = [
['Asiqur', 'asiqur@codedex.io']
['Asiqur', 'asiqur@codedex.io'],
['Dharma', 'dharma@codedex.io'],
['Jerry', 'jerry@codedex.io'],
['Lillian', 'lillian@codedex.io'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
load_dotenv()

def send_email(sender, receiver, recipient):
password = os.environ('password')
password = os.environ['password']
body_msg = f'''\
From: {sender}
Subject: Your Secret Santa Present
Expand All @@ -22,7 +22,7 @@ def send_email(sender, receiver, recipient):

names_list = ['Sonny', 'Dharma', 'Malcolm', 'Jerry', 'Asiqur', 'Rose', 'Lillian']
names_and_emails = [
['Asiqur', 'asiqur@codedex.io']
['Asiqur', 'asiqur@codedex.io'],
['Dharma', 'dharma@codedex.io'],
['Jerry', 'jerry@codedex.io'],
['Lillian', 'lillian@codedex.io'],
Expand Down