Created
May 23, 2017 13:00
-
-
Save ragvri/82ac64443380fb5d9bdc6ccb97b126f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/home/raghav/Dropbox/coding/python/snippets/intermediate_python_stuff/send_email.py", line 5, in <module> | |
mail = smtplib.SMTP('smpt.gmail.com', 587) | |
File "/usr/lib/python3.5/smtplib.py", line 251, in __init__ | |
(code, msg) = self.connect(host, port) | |
File "/usr/lib/python3.5/smtplib.py", line 335, in connect | |
self.sock = self._get_socket(host, port, self.timeout) | |
File "/usr/lib/python3.5/smtplib.py", line 306, in _get_socket | |
self.source_address) | |
File "/usr/lib/python3.5/socket.py", line 693, in create_connection | |
for res in getaddrinfo(host, port, 0, SOCK_STREAM): | |
File "/usr/lib/python3.5/socket.py", line 732, in getaddrinfo | |
for res in _socket.getaddrinfo(host, port, family, type, proto, flags): | |
socket.gaierror: [Errno -2] Name or service not known |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment