'Grafana email alerts configuration

I'm using currently Grafana version: v7.1.1 I would like to configure the email alerts in the config folder of Grafana, I followed the steps I found online but I did not manage, I get an error every-time I try to send a test email

Failed to send alert notifications

here's the smtp from defaults.ini that I found in config:
##############################################

host = smtp-mail.outlook.com:587
user = [email protected]
password =xxxxxxxxxxx
;cert_file =
;key_file =
skip_verify = false
from_address = [email protected]
from_name = Grafana
ehlo_identity =
startTLS_policy =

##########################################

when I checked the error log, I found the following:

error="Failed to send notification to email addresses: [email protected]: dial tcp 52.97.163.2:995: i/o timeout"

Can anyone tell me if I'm doing something wrong here? or how I can fix it? Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source