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
bb754b50
Commit
bb754b50
authored
Apr 30, 2011
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#11883: fix email examples by adding 'localhost' to SMTP constructor calls
parent
9beb34ee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Doc/includes/email-dir.py
Doc/includes/email-dir.py
+1
-1
Doc/includes/email-mime.py
Doc/includes/email-mime.py
+1
-1
Doc/includes/email-simple.py
Doc/includes/email-simple.py
+1
-1
No files found.
Doc/includes/email-dir.py
View file @
bb754b50
...
...
@@ -105,7 +105,7 @@ must be running an SMTP server.
fp
.
write
(
composed
)
fp
.
close
()
else
:
s
=
smtplib
.
SMTP
()
s
=
smtplib
.
SMTP
(
'localhost'
)
s
.
sendmail
(
opts
.
sender
,
opts
.
recipients
,
composed
)
s
.
quit
()
...
...
Doc/includes/email-mime.py
View file @
bb754b50
...
...
@@ -26,6 +26,6 @@ for file in pngfiles:
msg
.
attach
(
img
)
# Send the email via our own SMTP server.
s
=
smtplib
.
SMTP
()
s
=
smtplib
.
SMTP
(
'localhost'
)
s
.
sendmail
(
me
,
family
,
msg
.
as_string
())
s
.
quit
()
Doc/includes/email-simple.py
View file @
bb754b50
...
...
@@ -19,6 +19,6 @@ msg['To'] = you
# Send the message via our own SMTP server, but don't include the
# envelope header.
s
=
smtplib
.
SMTP
()
s
=
smtplib
.
SMTP
(
'localhost'
)
s
.
sendmail
(
me
,
[
you
],
msg
.
as_string
())
s
.
quit
()
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