bloggify-sendgrid
v3.0.2
Published
Bloggify plugin for sending emails via SendGrid.
Downloads
22
Maintainers
Readme
bloggify-sendgrid
Bloggify plugin for sending emails via SendGrid.
:cloud: Installation
# Using npm
npm install --save bloggify-sendgrid
# Using yarn
yarn add bloggify-sendgrid
:clipboard: Example
const Email = Bloggify.require("bloggify-sendgrid", true);
Email.send({
to_email: "[email protected]"
, from_email: "[email protected]"
, subject: "Hello world!"
, template_id: "your template id"
, substitutions: {
"-name-": "Alice"
}
}, (err, data) => {
console.log(err || data);
});
:question: Get Help
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. :bug:
:memo: Documentation
Plugin Configuration
- Object
config
:key
(String): The Sendgrid API key.
send(data)
Send an email.
Params
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.
Return
- Promise A promise resolving the result from Sendgrid.
:yum: How to contribute
Have an idea? Found a bug? See how to contribute.
:dizzy: Where is this library used?
If you are using this library in one of your projects, add it in this list. :sparkles:
bloggify.org
ionicabizau.net