Alert Notification with Gmail not working

Hello Peoples,
I’m new at grafana and I tried to create a alert notification channel with gmail. I changed the settings in grafana.ini according to the documentation but I always have the same errors :
‘’’
logger=alerting.notifier.email t=2022-05-31T11:23:30.4+0000 lvl=info msg=“Sending alert notification to” addresses=“unsupported value type” singleEmail=true
logger=alerting.notifier.email t=2022-05-31T11:23:30.4+0000 lvl=eror msg=“Failed to send alert notification email” error="Failed to send notification to ema$
logger=alerting.notifier t=2022-05-31T11:23:30.4+0000 lvl=eror msg=“failed to send notification” uid=jXWDHzX7z error=“Failed to send notification to email a$
$mail addresses: hugowber@gmail.com;grafanaalerttestlab@gmail.com: dial tcp 108.177.15.109:587: connect: connection refused”
‘’’

welcome to the :grafana: community @hugowber!

If you’re trying to use gmail as your SMTP server for grafana . . . you’re in luck, because I just set this up myself last month and have a config to show you

In my case, I used an app password to authenticate with gmail

This is the relevant snippet of my grafana.ini file:

#################################### SMTP / Emailing #####################
[smtp]
enabled = true
host = smtp.gmail.com:587
user = youremail@gmail.com
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
password = apppassword
cert_file =
key_file =
skip_verify = false
from_address = youremail@gmail.cm
from_name = Grafana
ehlo_identity =
startTLS_policy =
1 Like