bloggify-sendgrid

Bloggify plugin for sending emails via SendGrid.

Usage no npm install needed!

<script type="module">
  import bloggifySendgrid from 'https://cdn.skypack.dev/bloggify-sendgrid';
</script>

README

bloggify-sendgrid

Version Downloads

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: "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);
});

:question: Get Help

There are few ways to get help:

  1. Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
  2. 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

:scroll: License

MIT © Bloggify