Skip to content

mat-sz/letterbuilder

Repository files navigation

letterbuilder

workflow npm npm NPM

letterbuilder is a library created for building RFC 5322 compliant e-mail messages. The library is written in TypeScript, fully supports both browser and server environments.

Parser SMTP client/server
letterparser @typemail/smtp

Usage

General information

To build the message, use build:

import { build } from 'letterbuilder';
let res = build({
  from: 'test@example.com',
  to: ['someone@example.com'],
  text: 'Hello, world!',
});