5htp-email-mailjet

0.0.1-2 • Public • Published

MailJet Email Transporter for 5HTP

5HTP module for adding MailJet 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-mailjet

Configuration

Step 1: Get an API key on Mailjet

Step 2: Enable the service

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

import '5htp-email-mailjet';

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

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

You're done

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

Package Sidebar

Install

npm i 5htp-email-mailjet

Weekly Downloads

5

Version

0.0.1-2

License

MIT

Unpacked Size

4.08 kB

Total Files

3

Last publish

Collaborators

  • gaetanlegac