Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
feathers-mailer
Advanced tools
Feathers mailer service using
nodemailer
npm install feathers-mailer --save
If using a transport plugin, install the respective module.
import Mailer from 'feathers-mailer'
mailer = Mailer(transport, defaults)
transport
can be either SMTP options or a transport plugin with associated options.defaults
is an object that defines default values for mail options.mailer.create(body, params)
mailer.create
is a thin wrapper for transporter.sendMail
, accepting body
and returning err
and info
.
See here for possible fields of body
.
import Mailer from 'feathers-mailer'
import mandrill from 'nodemailer-mandrill-transport'
// Register the service, see below for an example
app.use('/mailer', Mailer(mandrill({
auth: {
apiKey: process.env.MANDRILL_API_KEY
}
})));
// Use the service
var email = {
from: 'FROM_EMAIL',
to: 'TO_EMAIL',
subject: 'Sendgrid test',
html: 'This is the email body'
};
app.service('mailer').create(email).then(function (result) {
console.log('Sent email', result);
}).catch(err => {
console.log(err);
});
For a more complete example, see examples/app which can be run with npm run example
.
1.0.0
Copyright (c) 2016
Licensed under the MIT license.
v1.0.6 (2017-02-07)
Merged pull requests:
FAQs
Feathers mailer service
The npm package feathers-mailer receives a total of 0 weekly downloads. As such, feathers-mailer popularity was classified as not popular.
We found that feathers-mailer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.