# Unable to use gmail to send alerts

**URL:** <https://community.graylog.org/t/unable-to-use-gmail-to-send-alerts/12994>\
**Category:** Graylog Central (peer support)\
**Created:** [November 29, 2019, 3:06pm UTC](https://community.graylog.org/t/unable-to-use-gmail-to-send-alerts/12994 "2019-11-29T15:06:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ylmcc](https://avatars.discourse-cdn.com/v4/letter/y/bbce88/32.png) [@ylmcc](https://community.graylog.org/u/ylmcc)\
**Post date:** [November 29, 2019, 3:06pm UTC](https://community.graylog.org/t/unable-to-use-gmail-to-send-alerts/12994/1 "2019-11-29T15:06:42Z")

</div>

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](mailto: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](mailto: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.

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [November 29, 2019, 4:11pm UTC](https://community.graylog.org/t/unable-to-use-gmail-to-send-alerts/12994/2 "2019-11-29T16:11:13Z")

</div>

does this help?

> [@How to send email alerts using Gmail](https://community.graylog.org/t/how-to-send-email-alerts-using-gmail/4103):
>
> Sending email alerts Because I know it’s not obvious from the interface and the documentation is vague, I’m writing this tutorial to document the process for configuring the email settings for Graylog and for configuring alerts to be sent via email. I’m using CentOS7 as a base, so instructions will differ if you’re using the OVA or another distribution. Configuration is also for Gmail as that is our email provider, so adapt to your own service where necessary. Configure graylog server Firstly…

---

<div class="post-metadata">

**Author:** ![ylmcc](https://avatars.discourse-cdn.com/v4/letter/y/bbce88/32.png) [@ylmcc](https://community.graylog.org/u/ylmcc)\
**Post date:** [November 29, 2019, 4:13pm UTC](https://community.graylog.org/t/unable-to-use-gmail-to-send-alerts/12994/3 "2019-11-29T16:13:13Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [December 13, 2019, 4:13pm UTC](https://community.graylog.org/t/unable-to-use-gmail-to-send-alerts/12994/4 "2019-12-13T16:13:20Z")

</div>

Closed on December 13, 2019, 4:13pm UTC

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