Bloggify plugin for sending emails via SendGrid.
# Using npm
npm install --save bloggify-sendgrid
# Using yarn
yarn add bloggify-sendgrid
const Email = Bloggify.require("bloggify-sendgrid", true);
Email.send({
to_email: "someone@domain.com"
, from_email: "me@domain.com"
, subject: "Hello world!"
, template_id: "your template id"
, substitutions: {
"-name-": "Alice"
}
}, (err, data) => {
console.log(err || data);
});
There are few ways to get help:
- Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
- For bug reports and feature requests, open issues. 🐛
- Object
config
:key
(String): The Sendgrid API key.
Send an email.
-
Object
data
: An object containing the message object sent to Sendgrid, as documented here. In the Bloggify config you will have to provide the following data: -
key
(String): The SendGrid key.
- Promise A promise resolving the result from Sendgrid.
Have an idea? Found a bug? See how to contribute.
If you are using this library in one of your projects, add it in this list. ✨
bloggify.org
ionicabizau.net