Email Notification using a Hotmail Account

Has anyone successfully setup an automation to send an email via a Hotmail account? I have used the gmail example for smtp but encounter the error
“SMTP server not found or refused connection ( Please check the IP address, hostname, and availability of your SMTP server.
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/smtp/”, line 137, in connection_is_valid
server = self.connect()
File “/usr/src/homeassistant/homeassistant/components/smtp/”, line 123, in connect
mail = smtplib.SMTP(self._server, self._port, timeout=self._timeout)
File “/usr/local/lib/python3.7/”, line 251, in init
(code, msg) = self.connect(host, port)
File “/usr/local/lib/python3.7/”, line 336, in connect
self.sock = self._get_socket(host, port, self.timeout)
File “/usr/local/lib/python3.7/”, line 307, in _get_socket
File “/usr/local/lib/python3.7/”, line 707, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File “/usr/local/lib/python3.7/”, line 752, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name does not resolve”

Change server to

1 Like

This worked! Thanks!