# Send mail failed with "UnsupportedDataTypeException"

**URL:** <https://discuss.elastic.co/t/send-mail-failed-with-unsupporteddatatypeexception/33144>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [October 28, 2015, 11:44am UTC](https://discuss.elastic.co/t/send-mail-failed-with-unsupporteddatatypeexception/33144 "2015-10-28T11:44:43Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![kurtcoke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kurtcoke/32/3888_2.png) [@kurtcoke](https://discuss.elastic.co/u/kurtcoke)\
**Post date:** [November 2, 2015, 7:43am UTC](https://discuss.elastic.co/t/send-mail-failed-with-unsupporteddatatypeexception/33144/5 "2015-11-02T07:43:59Z")

</div>

Look at what they suggested in this thread: [UnsupportedDataTypeException when trying to send email](https://discuss.elastic.co/t/unsupporteddatatypeexception-when-trying-to-send-email/28634/6)

This worked for me on the latest watcher, and ES 2.0.0 Stable:

```
$ cd /usr/share/elasticsearch/plugins/watcher/
    $ sudo mv activation-1.1.1.jar ../../lib/
    $ sudo mv javax.mail-1.5.3.jar ../../lib/
    $ sudo service elasticsearch restart
```

---

_[View the full topic](https://discuss.elastic.co/t/send-mail-failed-with-unsupporteddatatypeexception/33144)._
