# Using pre-configured email connector instead of using configured email connector

**URL:** <https://discuss.elastic.co/t/using-pre-configured-email-connector-instead-of-using-configured-email-connector/291720>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [December 13, 2021, 10:10pm UTC](https://discuss.elastic.co/t/using-pre-configured-email-connector-instead-of-using-configured-email-connector/291720 "2021-12-13T22:10:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![keyu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keyu/32/98794_2.png) [@keyu](https://discuss.elastic.co/u/keyu)\
**Post date:** [December 13, 2021, 10:10pm UTC](https://discuss.elastic.co/t/using-pre-configured-email-connector-instead-of-using-configured-email-connector/291720/1 "2021-12-13T22:10:19Z")

</div>

Hi,

I am working on watcher emails. Configured a connector in "Rules and Connectors"

I have validated the connector validation by test email. I am able to receive the email from the Test tab by clicking on the "Run" button. It worked fine if I try from there and the email received from the sender configured.

But when I tried same by configuring a Sample Watcher for testing this I am getting emails from "[noreply@watcheralert.found.io](mailto:noreply@watcheralert.found.io)"

What need to modified so that I receive emails from configured sender email instead of pre-configured connector

Regards,  
Keyu

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [December 13, 2021, 11:41pm UTC](https://discuss.elastic.co/t/using-pre-configured-email-connector-instead-of-using-configured-email-connector/291720/2 "2021-12-13T23:41:15Z")

</div>

Watcher does not use the Rules and Connectors.

There are 2 alerting frameworks in The Elastic Stack

[Watcher](https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-alerting.html) : The Legacy Framework :

And [the New Kibana Alerting Framework :](https://www.elastic.co/guide/en/kibana/current/alerting-getting-started.html) Rules and Connectors

They are 2 completely separate things [here is a short comparison](https://www.elastic.co/guide/en/kibana/current/alerting-getting-started.html#alerting-concepts-differences)

The Connectors you mention above are for the Kibana Alerting Framework and thus are not used by Watcher.

In Elastic Cloud watcher will only send via the built in Elastic Cloud mail service [see here](https://www.elastic.co/guide/en/cloud/current/ec-watcher.html)

---

<div class="post-metadata">

**Author:** ![keyu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keyu/32/98794_2.png) [@keyu](https://discuss.elastic.co/u/keyu)\
**Post date:** [December 15, 2021, 6:28am UTC](https://discuss.elastic.co/t/using-pre-configured-email-connector-instead-of-using-configured-email-connector/291720/3 "2021-12-15T06:28:26Z")

</div>

Thanks for the reply Stephen.

My actual requirement is to send watcher emails with [test@domain.com](mailto:test@domain.com) instead of "[noreply@watcheralert.found.io](mailto:noreply@watcheralert.found.io)"

Could you please help in configuring it

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [December 15, 2021, 4:43pm UTC](https://discuss.elastic.co/t/using-pre-configured-email-connector-instead-of-using-configured-email-connector/291720/4 "2021-12-15T16:43:41Z")

</div>

Have you tried to simple set the `from` attribute in the email action..

> **[Watcher email action | Elasticsearch Guide \[7.16\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.16/actions-email.html#email-action-attributes)**

```auto
"actions" : {
  "send_email" : { 
    "email" : { 
      "to" : "username@example.org", 
      "from" : "test@domain.com"
      "subject" : "Watcher Notification", 
      "body" : "{{ctx.payload.hits.total}} error logs found" 
    }
  }
}

```

> | Name | Required | Default | Description |
> | --- | --- | --- | --- |
> | `from` | no | - | The email [address](https://www.elastic.co/guide/en/elasticsearch/reference/7.16/actions-email.html#email-address) from which the email will be sent. The `from` field can contain Mustache [templates](https://www.elastic.co/guide/en/elasticsearch/reference/7.16/how-watcher-works.html#templates) as long as it resolves to a valid email address. |

Caution ... your email spam detector may not like the `from` not being the same as the actual `sent` domain

---

<div class="post-metadata">

**Author:** ![keyu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/keyu/32/98794_2.png) [@keyu](https://discuss.elastic.co/u/keyu)\
**Post date:** [December 16, 2021, 7:24am UTC](https://discuss.elastic.co/t/using-pre-configured-email-connector-instead-of-using-configured-email-connector/291720/5 "2021-12-16T07:24:58Z")

</div>

Thanks, it worked. I haven't seen this attribute in any examples. Some how missed this from attributes list

---

<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 13, 2022, 7:25am UTC](https://discuss.elastic.co/t/using-pre-configured-email-connector-instead-of-using-configured-email-connector/291720/6 "2022-01-13T07:25:14Z")

</div>

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