# Email Notification Webhook or alternative to SMTP

**URL:** https://meta.discourse.org/t/email-notification-webhook-or-alternative-to-smtp/266787
**Category:** Development
**Tags:** email
**Created:** [May 31, 2023, 4:10pm UTC](https://meta.discourse.org/t/email-notification-webhook-or-alternative-to-smtp/266787 "2023-05-31T16:10:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![NotAnonymous](https://avatars.discourse-cdn.com/v4/letter/n/f05b48/32.png) [@NotAnonymous](https://meta.discourse.org/u/NotAnonymous)
#### Post date: [May 31, 2023, 4:10pm UTC](https://meta.discourse.org/t/email-notification-webhook-or-alternative-to-smtp/266787/1 "2023-05-31T16:10:47Z")

</div>

I’m wanting to change our Discourse email notifications to be sent via a service that only supports sending via an API rather than a standard SMTP relay. I’m not finding any current settings or plugins or obvious way of doing this. The closest I’ve seen is maybe using a webhook to send info to the api or an interstitial api. Questions:

- Is there already a way to send email via api instead of smtp that I’m just not finding?
- If not, is there a way to get any notifications that would normally trigger an email via web hook?
- If not, is there a way via a plugin to override normal email sends and do a custom thing instead?

Any answers/pointers on the above would be much appreciated!

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 31, 2023, 8:37pm UTC](https://meta.discourse.org/t/email-notification-webhook-or-alternative-to-smtp/266787/2 "2023-05-31T20:37:29Z")

</div>

> [@NotAnonymous](#):
>
> Is there already a way to send email via api instead of smtp that I’m just not finding?

No.

> [@NotAnonymous](#):
>
> If not, is there a way to get any notifications that would normally trigger an email via web hook?

I don’t think so.

> [@NotAnonymous](#):
>
> If not, is there a way via a plugin to override normal email sends and do a custom thing instead?

Sure, anything is possible. I think it’ll take a bunch of time and be prone be being broken, I think.
