0.0.2 • Published 1 year ago

5htp-email-mailchimp v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

MailChimp Email Transporter for 5HTP

5HTP module for adding MailChimp 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-mailchimp

Configuration

Step 1: Get an API key on MailChimp

Step 2: Enable the service

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

import '5htp-email-mailchimp';

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

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

You're done

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