I've configured a self-hosted parse server and I need to use the after-save function. After much researching and testing, I got very confused and have some questions. What I need is to send an email from the parse server (not the app) when a given object is saved.
- This is possible with the after-save function, right?
What's the best approach to do that? Where should I add the after-save code?
Parse.Cloud.afterSave("TheObject", function(request) { //send email! });
Any help? :) Thanks!
Set up a mail service, like mailgun-js
https://www.npmjs.com/package/mailgun-js
Use cloud code.