Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7a139c50
Commit
7a139c50
authored
Jul 10, 2016
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#26176: fix usage of Address constructor in email examples.
Patch by Nathan Harold.
parent
537ad7ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Doc/includes/email-alternative-new-api.py
Doc/includes/email-alternative-new-api.py
+3
-3
Doc/library/email-examples.rst
Doc/library/email-examples.rst
+1
-1
No files found.
Doc/includes/email-alternative-new-api.py
View file @
7a139c50
...
...
@@ -9,9 +9,9 @@ from email.utils import make_msgid
# Create the base text message.
msg
=
EmailMessage
()
msg
[
'Subject'
]
=
"Ayons asperges pour le déjeuner"
msg
[
'From'
]
=
Address
(
"Pepé Le Pew"
,
"pepe
@
example.com"
)
msg
[
'To'
]
=
(
Address
(
"Penelope Pussycat"
,
"penelope
@
example.com"
),
Address
(
"Fabrette Pussycat"
,
"fabrette
@
example.com"
))
msg
[
'From'
]
=
Address
(
"Pepé Le Pew"
,
"pepe
"
,
"
example.com"
)
msg
[
'To'
]
=
(
Address
(
"Penelope Pussycat"
,
"penelope
"
,
"
example.com"
),
Address
(
"Fabrette Pussycat"
,
"fabrette
"
,
"
example.com"
))
msg
.
set_content
(
"""
\
Salut!
...
...
Doc/library/email-examples.rst
View file @
7a139c50
...
...
@@ -61,7 +61,7 @@ way we could process it:
Up to the prompt, the output from the above is::
To: Penelope Pussycat <
"penelope@example.com">, Fabrette Pussycat <"fabrette@example.com"
>
To: Penelope Pussycat <
penelope@example.com>, Fabrette Pussycat <fabrette@example.com
>
From: Pepé Le Pew <pepe@example.com>
Subject: Ayons asperges pour le déjeuner
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment