Untitled
unknown
plain_text
4 years ago
2.8 kB
8
Indexable
gaierror Traceback (most recent call last)
<ipython-input-76-79e1ee983e0b> in <module>
5 else:
6 print("INCORRECTLY PARKED")
----> 7 send_email("Your car is incorrectly parked")
8 else:
9 print("PARKING SPACE AVAILABLE ")
<ipython-input-61-a5c66b8e5c95> in send_email(msg)
3 message="Car Parking".format(msg)
4 context=ssl.create_default_context();
----> 5 with smtplib.SMTP_SSL("smtp@gmail.com",port,context=context) as server:
6 server.login(sender,password)
7 server.sendmail(sender,recieve,message)
~\anaconda3\lib\smtplib.py in __init__(self, host, port, local_hostname, keyfile, certfile, timeout, source_address, context)
1030 keyfile=keyfile)
1031 self.context = context
-> 1032 SMTP.__init__(self, host, port, local_hostname, timeout,
1033 source_address)
1034
~\anaconda3\lib\smtplib.py in __init__(self, host, port, local_hostname, timeout, source_address)
251
252 if host:
--> 253 (code, msg) = self.connect(host, port)
254 if code != 220:
255 self.close()
~\anaconda3\lib\smtplib.py in connect(self, host, port, source_address)
335 port = self.default_port
336 sys.audit("smtplib.connect", self, host, port)
--> 337 self.sock = self._get_socket(host, port, self.timeout)
338 self.file = None
339 (code, msg) = self.getreply()
~\anaconda3\lib\smtplib.py in _get_socket(self, host, port, timeout)
1036 if self.debuglevel > 0:
1037 self._print_debug('connect:', (host, port))
-> 1038 new_socket = socket.create_connection((host, port), timeout,
1039 self.source_address)
1040 new_socket = self.context.wrap_socket(new_socket,
~\anaconda3\lib\socket.py in create_connection(address, timeout, source_address)
785 host, port = address
786 err = None
--> 787 for res in getaddrinfo(host, port, 0, SOCK_STREAM):
788 af, socktype, proto, canonname, sa = res
789 sock = None
~\anaconda3\lib\socket.py in getaddrinfo(host, port, family, type, proto, flags)
916 # and socket type values to enum constants.
917 addrlist = []
--> 918 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
919 af, socktype, proto, canonname, sa = res
920 addrlist.append((_intenum_converter(af, AddressFamily),
gaierror: [Errno 11003] getaddrinfo failedEditor is loading...