nodemailer implementation for deployd
Simple integration of nodemailer with deployd.
npm install dpd-mail --save
Go to your dashboard and create Mail resource and enter the requested info.
To send an email just call the post method of the mail resource you have created.
dpd.mail.post({
from: '"FROM" <no-reply@example>',
to: 'to@example',
subject: 'Your subject',
html: '<b>Html Content</b>',
text: 'Text Content',
secret: 'aisufdy6das827d'
}, function(result, error) {
console.log(error); //Delete the log calls if you want
console.log(result);
});
Change mail with your resource name.
For any help post an issue or write to gustavo@chimera.digital