Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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'
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement