-
-
Save gogl92/40ddd7fb94a1c11ce73a5b9c7c3b2cfa to your computer and use it in GitHub Desktop.
Using simple-parse-smtp-adapter with cloud code, Parse Server, https://github.com/lcortess/simple-parse-smtp-adapter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sendSmtpMail = require('simple-parse-smtp-adapter')({ | |
fromAddress: 'your@sender.address', | |
user: 'email@email.com', | |
password: 'AwesomePassword', | |
host: 'your.smtp.host', | |
isSSL: true, | |
port: 465, | |
emailField: 'email' | |
}).sendMail; | |
Parse.Cloud.afterSave("_User", function (request) { | |
sendSmtpMail({ | |
to: request.get('email'), | |
text: 'hi,<br> Message!', | |
subject: 'subject' | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment