Gmail for notifications

#1

Does anyone have Gmail set up for SMTP notifications? I’ve tried various combinations of grafana.ini settings but haven’t been able to make it work. Thanks.

Cant get grafana to email alerts using gmail
#2

smtp.gmail.com

port: 465

should work, if you use two factor auth generate a device specific password to use

#3

I forgot about 2-factor auth. Thanks.

#4

I use this settings and receive an error ;

[smtp]
enabled = true
host = smtp.gmail.com:465
user =paolo.kusanovic@gmail.com
password ="pass"
skip_verify = true
from_address = paolo.kusanovic@gmail.com
from_name = Sistema de monitoreo en lìnea

and receive this error :

Async sent email 0 succeed, not send emails: paolo.kusanovic_at_gmail.com err: gomail: could not send email 1: gomail: invalid address “=?UTF-8?q?Sistema_de_monitoreo_en_l=ECnea_<paolo.kusanovic_at_gmail.com>?=”: mail: expected single address, got “?=”

Can you publish your entire code ?

Thanks

#5

Hello,

I managed to get gmail to work on my setup, so just thought it was worth Sharing my config.
First two factor authentication on my gmail account is off, as well as enabling allow less secure applications.

Then my config read the same as happynerds above, except the field below:

password = “”“pass”""

#6

msg=“Failed to send alert notification email” logger=alerting.notifier.email error=“unencrypted connection”

why i find the same error in grafana 5.xx and 6.xxx?

#7

Hi Team,

I am a new new user for Grafana. I am trying to do the Email SMTP configuration in grafana by sending a mail to particular recipient but i am unable to do the same.
When we are checked in log files it is showing as below error. Could you please help on this.

ERROR : msg=“Sending alert notification to” logger=alerting.notifier.email addresses=[abc.123@gmail.com
t=2019-04-23T16:21:11+0530 lvl=eror msg=“Failed to send alert notification email” logger=alerting.notifier.email error=“SMTP not configured, check your grafana.ini config file’s [smtp] section.”
t=2019-04-23T16:21:11+0530 lvl=eror msg=“failed to send notification” logger=alerting.notifier uid= error=“SMTP not configured, check your grafana.ini config file’s [smtp] section.”

#8

you must configure your SMTP server in the config.

#9

i have did the same still it is not working