# (Net::OpenTimeout) The same configuration but not working when moving to another environment

**URL:** <https://discuss.elastic.co/t/net-opentimeout-the-same-configuration-but-not-working-when-moving-to-another-environment/217605>\
**Category:** Logstash\
**Created:** [February 3, 2020, 10:22am UTC](https://discuss.elastic.co/t/net-opentimeout-the-same-configuration-but-not-working-when-moving-to-another-environment/217605 "2020-02-03T10:22:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karamen1](https://avatars.discourse-cdn.com/v4/letter/k/87869e/32.png) [@karamen1](https://discuss.elastic.co/u/karamen1)\
**Post date:** [February 3, 2020, 10:22am UTC](https://discuss.elastic.co/t/net-opentimeout-the-same-configuration-but-not-working-when-moving-to-another-environment/217605/1 "2020-02-03T10:22:54Z")

</div>

Hi Logtash team

I am using logstash mail output plugin for sending alert mail.  
it has been working normally on DEV environment by setting as below.

```
email {
            from => "xxx@gmail.com"
            body => "body text "
            to => "abc@gmail.com"
            subject => "Title"
            codec => "plain"
            contenttype => "text/plain; charset=UTF-8"
            address => "smtp.gmail.com"
            port => 587
            authentication => plain
            username => "xxx@gmail.com"
            password => "password"
            use_tls => true
          }

```

but when i move this setting to staging environment, has an error was occurred.

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

what setting should i change?

thanks you for supporting.

---

<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:** [March 2, 2020, 10:22am UTC](https://discuss.elastic.co/t/net-opentimeout-the-same-configuration-but-not-working-when-moving-to-another-environment/217605/2 "2020-03-02T10:22:57Z")

</div>

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