Email Notification using a Hotmail Account

Hello,
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 (smtp.hotmail.com:587). Please check the IP address, hostname, and availability of your SMTP server.
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/smtp/notify.py”, line 137, in connection_is_valid
server = self.connect()
File “/usr/src/homeassistant/homeassistant/components/smtp/notify.py”, line 123, in connect
mail = smtplib.SMTP(self._server, self._port, timeout=self._timeout)
File “/usr/local/lib/python3.7/smtplib.py”, line 251, in init
(code, msg) = self.connect(host, port)
File “/usr/local/lib/python3.7/smtplib.py”, line 336, in connect
self.sock = self._get_socket(host, port, self.timeout)
File “/usr/local/lib/python3.7/smtplib.py”, line 307, in _get_socket
self.source_address)
File “/usr/local/lib/python3.7/socket.py”, line 707, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File “/usr/local/lib/python3.7/socket.py”, 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 smtp.live.com

1 Like

This worked! Thanks!