Transactional emails with a kick
Agnostic transactional email sending in Node.js environment
> Why ?
To improve and facilitate the implementation, the flexibility and the maintenance of transactional emailing tasks.
> Features
- Agnostic transactional email sending using web API or SMTP server. One input, one output.
- Multiple simultaneous transporters.
- Configuration based, not implementation based: easy switch between different modes.
- Normalized transactions events.
- Securized payloads.
- Customisable default templates.
> Table of contents
- Requirements
- Getting started
- Selective imports
- Beneficiary use cases
- Supported web API providers
- Upgrading to v3
- Licence
- Documentation
> Requirements
- Node.js >= 18.19.0
- NPM >= 10.2.3
> Getting started
Install
> npm i cliam --save
Configure
Cliam must be configured once at application startup, before any call to mail(). Two approaches are available.
Option A - Pass a configuration object directly:
import { Cliam } from 'cliam';
import type { IClientConfiguration } from 'cliam';…