# Email plugin

**URL:** <https://discuss.elastic.co/t/email-plugin/66583>\
**Category:** Logstash\
**Created:** [November 18, 2016, 7:59pm UTC](https://discuss.elastic.co/t/email-plugin/66583 "2016-11-18T19:59:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanziee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seanziee/32/45151_2.png) [@seanziee](https://discuss.elastic.co/u/seanziee)\
**Post date:** [November 18, 2016, 7:59pm UTC](https://discuss.elastic.co/t/email-plugin/66583/1 "2016-11-18T19:59:21Z")

</div>

I've been trouble shooting the email plugin for a while now and there has been very little information generally about it. It is very difficult to know which fields are required for different situations. Specifically examples would be helpful, and especially with the ELK 5.0. So now that I've solved my issues, I would just like to post it as an example.

I'm using CentOS 7 and the ELK 5.0 suite running as a service.

As an idea, it would be wonderful if you guys at ELK created a place that people could put their functional examples of certain plugins or situations so that people could use it as a reference because an example speaks a thousand words.

Alas:

```
output{
    email {
        to => "TTT@XXX.com" #Wherever you'd like to send the email to.
        subject => "SubjectText"
        body => "BodyText"
        from => "user@XXX.com"
        address => "smtp.office365.com" # or smtp.gmail.com. Look online for your smtp server
        username => "user@XXX.com" #the "username" and the "from" field need to be the same
        password => "Password for user@XXX.com"
        port => 587
        use_tls => true
        authentication => "LOGIN" #This was needed for my setup!!
    }
}

```

Cheers!

---

<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:** [December 16, 2016, 8:00pm UTC](https://discuss.elastic.co/t/email-plugin/66583/2 "2016-12-16T20:00:05Z")

</div>

Closed on December 16, 2016, 8:00pm UTC

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