# Email output not being sent to multiple Gmail IDs

**URL:** <https://discuss.elastic.co/t/email-output-not-being-sent-to-multiple-gmail-ids/233776>\
**Category:** Logstash\
**Created:** [May 21, 2020, 4:55pm UTC](https://discuss.elastic.co/t/email-output-not-being-sent-to-multiple-gmail-ids/233776 "2020-05-21T16:55:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![san\_sun](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@san\_sun](https://discuss.elastic.co/u/san_sun)\
**Post date:** [May 21, 2020, 4:55pm UTC](https://discuss.elastic.co/t/email-output-not-being-sent-to-multiple-gmail-ids/233776/1 "2020-05-21T16:55:07Z")

</div>

I have Logstash email output that is configured as:

```auto
email {
        port => "587"
        address => "smtp.gmail.com"
        username => "a@gmail.com"
        password => "password"
        authentication => "plain"
        use_tls => true    
        from => "a@gmail.com"
        subject => "Alert"
        to => "x@gmail.com, y@gmail.com, z@gmail.com"
        via => "smtp"  
        body => "Error!"
}       

```

However, the email only gets sent to the first email id, [x@gmail.com](mailto:x@gmail.com). How do I get it to send to all the email addresses?

---

<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:** [June 18, 2020, 4:55pm UTC](https://discuss.elastic.co/t/email-output-not-being-sent-to-multiple-gmail-ids/233776/2 "2020-06-18T16:55:07Z")

</div>

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