# Email - Something happen while delivering an email {:exception=\>#\<Net::OpenTimeout: execution expired\>}

**URL:** <https://discuss.elastic.co/t/email-something-happen-while-delivering-an-email-exception-net-execution-expired/319590>\
**Category:** Logstash\
**Created:** [November 22, 2022, 9:49pm UTC](https://discuss.elastic.co/t/email-something-happen-while-delivering-an-email-exception-net-execution-expired/319590 "2022-11-22T21:49:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Graciano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_graciano/32/113661_2.png) [@David\_Graciano](https://discuss.elastic.co/u/David_Graciano)\
**Post date:** [November 22, 2022, 9:49pm UTC](https://discuss.elastic.co/t/email-something-happen-while-delivering-an-email-exception-net-execution-expired/319590/1 "2022-11-22T21:49:03Z")

</div>

Attempting to send an email from the logstash output produces the following error in the output.

email - Something happen while delivering an email {:exception=\>#\<Net::OpenTimeout: execution expired\>}

this is my current setup...

```auto
if [enviar_correo] == "true" {
    email {
            to => "email@outlook.com"
            from => "email@outlook.com"
            domain => "smtp.office365.com"
            address => "smtp.office365.com"
            port => 587
            username => "email@outlook.com"
            password => "passw0rd"
            subject => "Alert"
            body => "%{correo}"
            #authentication => "plain"
            use_tls => true
       }
    }

```

I would appreciate help.

---

<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 20, 2022, 9:50pm UTC](https://discuss.elastic.co/t/email-something-happen-while-delivering-an-email-exception-net-execution-expired/319590/2 "2022-12-20T21:50:00Z")

</div>

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