Unable to use gmail to send alerts

Hi guys,

I have tried following “How to send email alerts using Gmail” to no avail.

The error I am getting is " * Error: Notification has email recipients and is triggered, but sending emails failed. Sending the email to the following server failed : smtp(.)gmail(.)com:587"

My Email configuration is the following:
transport_email_enabled = true
transport_email_hostname = smtp(.)gmail(.)com
transport_email_port = 587
transport_email_use_auth = true
transport_email_use_tls = true
transport_email_auth_username = email
transport_email_auth_password = password
transport_email_from_email = email@company.com

I am unable to see any error in depth as the logs when configured for debug only show the following:
2019-11-29T09:08:59.748-05:00 DEBUG [EmailSender] Sending mail to test@email.com

I cannot find any traces or anything more stored in /var/log/graylog-server/server.log

Any help on this would be fantastic.

does this help?

Hi Jan,

I realised I was not seeing the detailed messages as I had not included the user to be notified. Once I did that I found out that my password was not correct. Google wanted me to generate an app password. Once I did that I could then send emails.

Thank you for your input!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.