Skip to content

Instantly share code, notes, and snippets.

@ragvri
Created May 23, 2017 13:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ragvri/82ac64443380fb5d9bdc6ccb97b126f7 to your computer and use it in GitHub Desktop.
Save ragvri/82ac64443380fb5d9bdc6ccb97b126f7 to your computer and use it in GitHub Desktop.
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