# Cannot send e-mail notifications SMTPAuthenticationError all the time

**URL:** <https://discuss.elastic.co/t/cannot-send-e-mail-notifications-smtpauthenticationerror-all-the-time/363431>\
**Category:** Logstash\
**Created:** [July 19, 2024, 12:10pm UTC](https://discuss.elastic.co/t/cannot-send-e-mail-notifications-smtpauthenticationerror-all-the-time/363431 "2024-07-19T12:10:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sainar\_Vekinel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sainar_vekinel/32/136172_2.png) [@Sainar\_Vekinel](https://discuss.elastic.co/u/Sainar_Vekinel)\
**Post date:** [July 19, 2024, 12:10pm UTC](https://discuss.elastic.co/t/cannot-send-e-mail-notifications-smtpauthenticationerror-all-the-time/363431/1 "2024-07-19T12:10:03Z")

</div>

Hey guys i don't know if this problem already discussed? but i have the problem with email notification in logstash here is the error:  
**[2024-07-19T13:37:58,836][ERROR][logstash.outputs.email][main][aa5c77b7a64207e316fd81b753b0305544fc89204da461fc38faf1fb3b39ff59] Something happen while delivering an email {:exception=\>#\<Net::SMTPAuthenticationError: Net::SMTPAuthenticationError\>}**  
and down below is my logstash config file:

input {  
file {  
type =\> "json"  
codec =\> "json"  
path =\> "/var/log/kibana/kibana.log"  
start\_position =\> beginning  
}  
}  
filter {  
grok {  
match =\> {  
"message" =\> "Server log: - AlertName: %{DATA:alertName};- MonitorName: %{DATA:monitorName};- Reason: %{DATA:reason};- LastErrorMessage: %{DATA:lastErrorMessage};---"  
}  
}  
}  
output {  
if[log][level] == "ERROR" {  
email {  
to =\> "[someone@somedomain.com](mailto:someone@somedomain.com)"  
from =\> "[123@somedomain.com](mailto:123@somedomain.com)"  
subject =\> "Alert: %{alertName} - %{monitorName}"  
body =\> "Reason:\n%{reason}\n\nLast Error Message:\n%{lastErrorMessage}\n\nRaw Message:%{message}"  
address =\> "ip or domain"  
port =\> 465  
**use\_tls =\> true i have ssl but i don`t know how to enable it**  
username =\> "[123@somedomain.com](mailto:123@somedomain.com)"  
password =\> "\*\*\*\*\*\*\*"  
}  
stdout {  
codec =\> line {  
format =\> "%{message}"  
}  
}  
}  
}
