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 |
To build the message, use build
:
import { build } from 'letterbuilder';
let res = build({
from: 'test@example.com',
to: ['someone@example.com'],
text: 'Hello, world!',
});