5htp-email-sendgrid

0.0.1-2 • Public • Published

SendGrid Email Transporter for 5HTP

5HTP module for adding SendGrid as a mail transporter.

This module is only compatible with projects based on 5HTP, an experimental Node/TS/Preact full stack framework designed for performance and productivity.

npm npm

Installation

npm i --save 5htp-email-sendgrid

Configuration

Step 1: Get an API key on SendGrid

Step 2: Enable the service

Enable this service module in your app by importing it in @/server/index.ts:

import '5htp-email-sendgrid';

In @/server/config.ts, add this transporter to the email service configuration:

{
    email: {
        default: {
            ...,
            // By default, use SendGrid to send all the email
            transporter: 'sendgrid'
        },
        transporters: {
            // Set the API key
            sendgrid: {
                api: "<SendGrid API key>"
            }
        }
    }
}

You're done

The email service is now configurated to send emails via your SendGrid account.

Package Sidebar

Install

npm i 5htp-email-sendgrid

Weekly Downloads

8

Version

0.0.1-2

License

MIT

Unpacked Size

3.35 kB

Total Files

3

Last publish

Collaborators

  • gaetanlegac