Email Notification Webhook or alternative to SMTP

AI-generated summary

The discussion revolves around sending Discourse email notifications via an API instead of SMTP. NotAnonymous is looking for an alternative method and asks three questions: if there’s a built-in way to send emails via API, if notifications can be sent via webhook, and if a plugin can override normal email sends. pfaffman responds that there’s no built-in way to send emails via API and no direct way to send notifications via webhook. However, creating a plugin to override normal email sends is possible, but it may require significant time and could be prone to breaking.

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!

No.

I don’t think so.

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