# How email system work?

**URL:** <https://meta.discourse.org/t/how-email-system-work/162923>\
**Category:** Development\
**Created:** [September 3, 2020, 1:37pm UTC](https://meta.discourse.org/t/how-email-system-work/162923 "2020-09-03T13:37:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikolay](https://avatars.discourse-cdn.com/v4/letter/n/a698b9/32.png) [@Nikolay](https://meta.discourse.org/u/Nikolay)\
**Post date:** [September 3, 2020, 1:37pm UTC](https://meta.discourse.org/t/how-email-system-work/162923/1 "2020-09-03T13:37:57Z")

</div>

Hello all.

I want to change behavior of my forum.  
Dont ask why, but i want forum to send emails data to Rabbitmq queue instead of sending them using ordinary email services..  
Can you please tell me, where is the line in code which is responsible for email sending?  
I would be very thankful.

---

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [September 3, 2020, 9:42pm UTC](https://meta.discourse.org/t/how-email-system-work/162923/2 "2020-09-03T21:42:17Z")

</div>

> <https://github.com/discourse/discourse/blob/7a0d1cadc5c867ac1e5ae2184a6e92589d631f35/lib/email/sender.rb#L215-L215>
