# Unable to send the Alert using watcher

**URL:** <https://discuss.elastic.co/t/unable-to-send-the-alert-using-watcher/159373>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [December 4, 2018, 1:59pm UTC](https://discuss.elastic.co/t/unable-to-send-the-alert-using-watcher/159373 "2018-12-04T13:59:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [December 4, 2018, 1:59pm UTC](https://discuss.elastic.co/t/unable-to-send-the-alert-using-watcher/159373/1 "2018-12-04T13:59:56Z")

</div>

HI Team,  
I'm using ELK 6.2 and trying to send advance alert but im getting below error,

```
 "id": "send_email",
        "type": "email",
        "status": "failure",
        "error": {
          "root_cause": [
            {
              "type": "messaging_exception",
              "reason": "failed to send email with subject [test] via account [exchange_account]"
            }
          ],
          "type": "messaging_exception",
          "reason": "failed to send email with subject [test] via account [exchange_account]",
          "caused_by": {
            "type": "authentication_failed_exception",
            "reason": "535 5.7.0 authentication failed\n"

```

This is my mail smtp setting in elasticsearch.yml

```
xpack.notification.email.account:
  exchange_account:
    profile: outlook
    email_defaults:
      from: elasticsearch@aexp.com
    smtp:
      auth: true
      starttls.enable: true
      host: xxx.aexp.com
      port: 25
      user: elastic
      password: xxxxx

```

i have modified this in all cluster node. Please anyone help me on this

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [December 7, 2018, 2:39am UTC](https://discuss.elastic.co/t/unable-to-send-the-alert-using-watcher/159373/2 "2018-12-07T02:39:58Z")

</div>

That means that the configured credentials (`user` and/or `password`) for this email account is wrong.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 4, 2019, 2:40am UTC](https://discuss.elastic.co/t/unable-to-send-the-alert-using-watcher/159373/3 "2019-01-04T02:40:07Z")

</div>

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