Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a7425c5

Browse files
committed
Merge: #26176: fix usage of Address constructor in email examples.
2 parents 9bdb1ed + 7a139c5 commit a7425c5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/includes/email-alternative-new-api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
# Create the base text message.
1010
msg = EmailMessage()
1111
msg['Subject'] = "Ayons asperges pour le déjeuner"
12-
msg['From'] = Address("Pepé Le Pew", "pepe@example.com")
13-
msg['To'] = (Address("Penelope Pussycat", "penelope@example.com"),
14-
Address("Fabrette Pussycat", "fabrette@example.com"))
12+
msg['From'] = Address("Pepé Le Pew", "pepe", "example.com")
13+
msg['To'] = (Address("Penelope Pussycat", "penelope", "example.com"),
14+
Address("Fabrette Pussycat", "fabrette", "example.com"))
1515
msg.set_content("""\
1616
Salut!
1717

Doc/library/email-examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ way we could process it:
6161

6262
Up to the prompt, the output from the above is::
6363

64-
To: Penelope Pussycat <"[email protected]">, Fabrette Pussycat <"[email protected]">
64+
To: Penelope Pussycat <[email protected]>, Fabrette Pussycat <[email protected]>
6565
From: Pepé Le Pew <[email protected]>
6666
Subject: Ayons asperges pour le déjeuner
6767

0 commit comments

Comments
 (0)