# Task Automtic send Email

**URL:** <https://forum.flowable.org/t/task-automtic-send-email/1172>\
**Category:** Flowable Engine\
**Created:** [November 8, 2017, 7:16pm UTC](https://forum.flowable.org/t/task-automtic-send-email/1172 "2017-11-08T19:16:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cabral](https://avatars.discourse-cdn.com/v4/letter/c/a8b319/32.png) [@cabral](https://forum.flowable.org/u/cabral)\
**Post date:** [November 8, 2017, 7:16pm UTC](https://forum.flowable.org/t/task-automtic-send-email/1172/1 "2017-11-08T19:16:29Z")

</div>

Hi, guys I really need a help  
how can I notify users or groups of users via email that a process or task has already passed from one phase to another in which users our group of user have been assigned?

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [November 8, 2017, 8:36pm UTC](https://forum.flowable.org/t/task-automtic-send-email/1172/2 "2017-11-08T20:36:15Z")

</div>

Hi Cabral,

For how to send email task check the following junit test in flowable source:  
org.flowable.examples.bpmn.mail.EmailSendTaskTest#testSendEmail

When you need to execute listener on the event (e.g. User task created event) use eventListener  
org/flowable/engine/test/bpmn/usertask/UserTaskTest.testCompleteAfterParallelGateway.bpmn20.xml

```
<userTask id="UserwithListener" name="User with Listener">
			<extensionElements>
				<activiti:taskListener event='create' class='org.flowable.engine.test.bpmn.usertask.UserTaskTestCreateTaskListener'>
					<activiti:field name='expression' stringValue='some expression value' />
				</activiti:taskListener>
			</extensionElements>

</userTask>

```

Combine these two functionalities.

Regards  
Martin
