# Webhook on email sent? Or other way to hook into email sending function?

**URL:** <https://forum.mautic.org/t/webhook-on-email-sent-or-other-way-to-hook-into-email-sending-function/31139>\
**Category:** General Discussion\
**Created:** [March 3, 2024, 9:57pm UTC](https://forum.mautic.org/t/webhook-on-email-sent-or-other-way-to-hook-into-email-sending-function/31139 "2024-03-03T21:57:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oguruma](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/oguruma/32/1003_2.png) [@oguruma](https://forum.mautic.org/u/oguruma)\
**Post date:** [March 3, 2024, 9:57pm UTC](https://forum.mautic.org/t/webhook-on-email-sent-or-other-way-to-hook-into-email-sending-function/31139/1 "2024-03-03T21:57:37Z")

</div>

I am trying to build an integration with ERPNext. ERPNext has an IMAP function that will bring in received emails, however it won’t work for sent emails…

So, I’d like a way to send a webhook to the ERP instance every time an email is sent (so the sent email can be linked to the respective Lead in the ERPNext instance).

Is there any way to hook on to the function that sends emails in Mautic?

---

<div class="post-metadata">

**Author:** ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)\
**Post date:** [March 4, 2024, 7:53am UTC](https://forum.mautic.org/t/webhook-on-email-sent-or-other-way-to-hook-into-email-sending-function/31139/2 "2024-03-04T07:53:17Z")

</div>

I am not sure because I have not used this yet, but maybe you can help yourself with this somehow (configure the webhook):

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/622505a1d6d06a49b342f3745599509de20249fe.png)

---

<div class="post-metadata">

**Author:** ![tobsowo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tobsowo/32/3096_2.png) [@tobsowo](https://forum.mautic.org/u/tobsowo)\
**Post date:** [March 7, 2024, 4:28pm UTC](https://forum.mautic.org/t/webhook-on-email-sent-or-other-way-to-hook-into-email-sending-function/31139/3 "2024-03-07T16:28:52Z")

</div>

I’m interested in this if you need a tester.
