# Getting error in logstash output email plugin?

**URL:** <https://discuss.elastic.co/t/getting-error-in-logstash-output-email-plugin/256471>\
**Category:** Logstash\
**Created:** [November 24, 2020, 9:01am UTC](https://discuss.elastic.co/t/getting-error-in-logstash-output-email-plugin/256471 "2020-11-24T09:01:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![talbehat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/talbehat/32/84367_2.png) [@talbehat](https://discuss.elastic.co/u/talbehat)\
**Post date:** [November 24, 2020, 9:01am UTC](https://discuss.elastic.co/t/getting-error-in-logstash-output-email-plugin/256471/1 "2020-11-24T09:01:05Z")

</div>

Error :

[2020-11-24T14:24:59,453][ERROR][logstash.outputs.email][main] Something happen while delivering an email {:exception=\>#\<Net::SMTPAuthenticationError: 504 5.3.3 AUTH mechanism PLAIN not available

my output config :

email {  
to =\> 'abc@abc.com'  
from =\> 'abc@gmail.com'  
subject =\> 'Alert - %{title}'  
body =\> "Tags: %{tags}\n\Content:\n%{message}"  
domain =\> '[smtp.gmail.com](http://smtp.gmail.com)'  
username =\> 'abc@gmail.com'  
password =\> '\*\*\*\*\*\*\*\*\*\*\*\*\*\*'  
port =\> 587  
authentication =\> 'plain'  
use\_tls =\> 'true'  
}

logstash version : 7.4

any idea why am i getting error ?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [November 24, 2020, 2:26pm UTC](https://discuss.elastic.co/t/getting-error-in-logstash-output-email-plugin/256471/2 "2020-11-24T14:26:40Z")

</div>

> [@talbehat](#):
>
> any idea why am i getting error ?

You have set `authentication => 'plain'` and the SMTP server is telling you that it does not support that.

---

<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 22, 2020, 2:26pm UTC](https://discuss.elastic.co/t/getting-error-in-logstash-output-email-plugin/256471/3 "2020-12-22T14:26:53Z")

</div>

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