Skip to content

Commit e982900

Browse files
authored
Update SMTP example to use smtp.gmail.com so ping actually works
1 parent 7a4c6df commit e982900

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/smtplib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Protocol) and :rfc:`1869` (SMTP Service Extensions).
5151
:keyword:`!with` statement exits. E.g.::
5252

5353
>>> from smtplib import SMTP
54-
>>> with SMTP("domain.org") as smtp:
54+
>>> with SMTP("smtp.gmail.com") as smtp:
5555
... smtp.noop()
5656
...
5757
(250, b'Ok')

0 commit comments

Comments
 (0)