zone-eu / zone-mta

📤 Modern outbound MTA cross platform and extendable server application
European Union Public License 1.2
602 stars 96 forks source link

Shortcut to send message from a plugin #288

Closed matteomattei closed 2 years ago

matteomattei commented 2 years ago

I need to send a message to the administrator (or to the client) from a plugin when some circumstances occur (for example when the user reach the limit of messages sent per day). Obviously I can use nodemailer with a transport using localhost as smtp server, but I am wondering if there is some sort of internal (and undocumented) zone-mta function to do it.

dazoot commented 2 years ago

Nope. Nothing internal. Just send a normal mail via SMTP or via API like mentioned here: https://github.com/zone-eu/zone-mta#http-api

Close ?

matteomattei commented 2 years ago

Got it, thanks. We can close it.