# Watcher fails to send email

**URL:** <https://discuss.elastic.co/t/watcher-fails-to-send-email/309490>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [July 13, 2022, 7:05am UTC](https://discuss.elastic.co/t/watcher-fails-to-send-email/309490 "2022-07-13T07:05:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacky\_Kwok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jacky_kwok/32/104596_2.png) [@Jacky\_Kwok](https://discuss.elastic.co/u/Jacky_Kwok)\
**Post date:** [July 13, 2022, 7:05am UTC](https://discuss.elastic.co/t/watcher-fails-to-send-email/309490/1 "2022-07-13T07:05:08Z")

</div>

Hi. I am currently using the trial version of elastic cloud.  
I have setup a watch alert which will send email daily.  
I have whitelisted my email address. But still, it shows execution failing.  
My actual mail address is replaced to "[test.gmail.com](http://test.gmail.com)"  
Please let me know if I am missing any step. Thanks!

My Watch JSON:

```auto
  "actions": {
    "send_email": {
      "email": {
        "profile": "standard",
        "to": [
          "test@gmail.com"
        ],
        "subject": "Watcher Notification",
        "body": {
          "text": "error logs found"
        }
      }
    }
  }

```

The error message:

```auto
    "actions": [
      {
        "id": "send_email",
        "type": "email",
        "status": "failure",
        "error": {
          "root_cause": [
            {
              "type": "messaging_exception",
              "reason": "failed to send email with subject [Watcher Notification] via account [work]"
            }
          ],
          "type": "messaging_exception",
          "reason": "failed to send email with subject [Watcher Notification] via account [work]",
          "caused_by": {
            "type": "send_failed_exception",
            "reason": "Invalid Addresses",
            "caused_by": {
              "type": "s_m_t_p_address_failed_exception",
              "reason": "554 5.7.1 <test@gmail.com>: Recipient address rejected: Access denied\n"
            }
          }
        }
      }
    ]
  }

```

---

<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:** [August 10, 2022, 7:05am UTC](https://discuss.elastic.co/t/watcher-fails-to-send-email/309490/2 "2022-08-10T07:05:17Z")

</div>

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