# Unable to send email to external domain

**URL:** <https://forum.flowable.org/t/unable-to-send-email-to-external-domain/5264>\
**Category:** Flowable Application\
**Created:** [January 19, 2020, 4:33pm UTC](https://forum.flowable.org/t/unable-to-send-email-to-external-domain/5264 "2020-01-19T16:33:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![harry](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@harry](https://forum.flowable.org/u/harry)\
**Post date:** [January 19, 2020, 4:33pm UTC](https://forum.flowable.org/t/unable-to-send-email-to-external-domain/5264/1 "2020-01-19T16:33:12Z")

</div>

I am using email task and I have setup and configured the email as required. Under flowable-task folder, I also changed the email settings as desired in flowable-default.properties file.  
It is working fine when the email is being sent from [someone@xyz.com](mailto:someone@xyz.com) to [someother@xyz.com](mailto:someother@xyz.com).

But, it fails when email is being sent from ‘xyz’ to ‘gmail’. I am not getting any errors while executing the email task and task also gets executed and even nothing comes up in the log. But, I do not receive any email on gmail.

Please help.

---

<div class="post-metadata">

**Author:** ![wwitt](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/wwitt/32/706_2.png) [@wwitt](https://forum.flowable.org/u/wwitt)\
**Post date:** [January 19, 2020, 4:37pm UTC](https://forum.flowable.org/t/unable-to-send-email-to-external-domain/5264/2 "2020-01-19T16:37:55Z")

</div>

This does not feel like a Flowable problem, all it does is submit your mail to an SMTP server. My guess is that Gmail is filtering your email as SPAM.

---

<div class="post-metadata">

**Author:** ![namanjohnson101](https://avatars.discourse-cdn.com/v4/letter/n/a88e4f/32.png) [@namanjohnson101](https://forum.flowable.org/u/namanjohnson101)\
**Post date:** [January 20, 2020, 11:27am UTC](https://forum.flowable.org/t/unable-to-send-email-to-external-domain/5264/3 "2020-01-20T11:27:18Z")

</div>

> [@wwitt](#):
>
> This does not feel like a Flowable problem, all it does is submit your mail to an SMTP server. My guess is that Gmail is filtering your email as SPAM.[stories](https://www.lustysexstories.xyz/)

thanks for your suggestion this help me to solve my issue

---

<div class="post-metadata">

**Author:** ![harry](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@harry](https://forum.flowable.org/u/harry)\
**Post date:** [January 21, 2020, 6:30am UTC](https://forum.flowable.org/t/unable-to-send-email-to-external-domain/5264/4 "2020-01-21T06:30:36Z")

</div>

Hi William,

Nothing comes in spam in gmail. Do I need to open any ports from server where I have hosted my flowable services.

---

<div class="post-metadata">

**Author:** ![wwitt](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/wwitt/32/706_2.png) [@wwitt](https://forum.flowable.org/u/wwitt)\
**Post date:** [January 21, 2020, 2:20pm UTC](https://forum.flowable.org/t/unable-to-send-email-to-external-domain/5264/5 "2020-01-21T14:20:41Z")

</div>

Unless your mail server is hosted on the same machine as Flowable, there should be no need to open ports. If your mail server is hosted on the same server as Flowable, or your mail server is self hosted on another machine for that matter, you are probably running into some Gmail security protections (there are many). If you configure a regular mail client (Thunderbird, Outlook, etc) with the same connection information are you able to send to Gmail?

If you are at a larger organization, you should contact your infrastructure team they’re likely running your internal mail servers. If you’re in a smaller organization, you might think about outsourcing your email services.
