# Email output with mandrill

**URL:** <https://discuss.elastic.co/t/email-output-with-mandrill/33198>\
**Category:** Logstash\
**Created:** [October 29, 2015, 2:08am UTC](https://discuss.elastic.co/t/email-output-with-mandrill/33198 "2015-10-29T02:08:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![voipoclay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/voipoclay/32/4372_2.png) [@voipoclay](https://discuss.elastic.co/u/voipoclay)\
**Post date:** [October 29, 2015, 2:08am UTC](https://discuss.elastic.co/t/email-output-with-mandrill/33198/1 "2015-10-29T02:08:14Z")

</div>

Hello,

I am running logstash 2.0 and I configured email output for mandrill and emails dont send and debug info doesnt seem very helpful.

My settings are basically

```
  output {
             email {
                     address => "smtp.mandrillapp.com"
                     port => 587 
                     use_tls => true
                     username => "user@domain.com"
                     password => "apikey"
                     authentication => "plain"
                     domain => "domain.com"
                     from => "user@domain.com"
                     to => "myemail@domain.com"
                     via => "smtp"
                     debug => true
                     subject => "CRITICAL test"
                     body => "test again"
             } 
}

```

And when i run in foreground I only thing I see is

```
Creating mail with these settings : {:via=>"smtp", :options=>nil, :from=>"user@domain.com", :to=>"myemail@domain.com", :cc=>nil, :subject=>"CRITICAL test", :body=>"test again", :content_type=>"text/html; charset=UTF-8", :htmlbody=>"", :attachments=>[], :level=>:debug, :file=>"logstash/outputs/email.rb", :line=>"109", :method=>"receive"}
Sending mail with these values : {:from=>["user@domain.com"], :to=>["myemail@domain.com"], :cc=>[], :subject=>"CRITICAL test", :level=>:debug, :file=>"logstash/outputs/email.rb", :line=>"138", :method=>"receive"}

```

I was wondering if any of my settings seem obviously wrong? I omitted usernames/passwords for security but message is otherwise copy and paste. I also run ngrep on port 587 and see nothing so seems like its not even trying.

Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![voipoclay](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/voipoclay/32/4372_2.png) [@voipoclay](https://discuss.elastic.co/u/voipoclay)\
**Post date:** [October 29, 2015, 2:33am UTC](https://discuss.elastic.co/t/email-output-with-mandrill/33198/2 "2015-10-29T02:33:41Z")

</div>

looks like getting rid of authentication option fixes it

---

<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:** [July 6, 2017, 5:25am UTC](https://discuss.elastic.co/t/email-output-with-mandrill/33198/3 "2017-07-06T05:25:00Z")

</div>

Closed on July 6, 2017, 5:25am UTC


