# Setting up e-mail account(s) on the fly for Watcher alerts

**URL:** https://discuss.elastic.co/t/setting-up-e-mail-account-s-on-the-fly-for-watcher-alerts/72311
**Category:** Elasticsearch
**Created:** [January 20, 2017, 4:06pm UTC](https://discuss.elastic.co/t/setting-up-e-mail-account-s-on-the-fly-for-watcher-alerts/72311 "2017-01-20T16:06:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![YvorL](https://avatars.discourse-cdn.com/v4/letter/y/9fc348/32.png) [@YvorL](https://discuss.elastic.co/u/YvorL)
#### Post date: [January 20, 2017, 4:06pm UTC](https://discuss.elastic.co/t/setting-up-e-mail-account-s-on-the-fly-for-watcher-alerts/72311/1 "2017-01-20T16:06:17Z")

</div>

Hi all!

I always try to comb through all documentation, but there are some things that I can't find out without testing. Unfortunately, I don't have the time to setup a testing environment and don't want to risk the production 😕  
I'd like to set up an e-mail for watcher to use, but in the future I'll need more modification in the elastic setup. I really don't want to restart the ES just for this. If I use the 'Settings' API does it mean that the modification will be live and I don't need to worry about restart?  
If so could somebody help what to put in the XPUT object if I need to insert a Gmail account? [ES Guide](https://www.elastic.co/guide/en/x-pack/current/actions-email.html#gmail)

Thank You!

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [January 23, 2017, 9:09am UTC](https://discuss.elastic.co/t/setting-up-e-mail-account-s-on-the-fly-for-watcher-alerts/72311/2 "2017-01-23T09:09:39Z")

</div>

Hey,

right now accounts are configured statically in the `elasticsearch.yml` file - however we are planning to integrate some sort of Notification API allowing you to configure accounts via the REST API.

--Alex

---

<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: [February 20, 2017, 9:09am UTC](https://discuss.elastic.co/t/setting-up-e-mail-account-s-on-the-fly-for-watcher-alerts/72311/3 "2017-02-20T09:09:54Z")

</div>

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