Skip to main content
Before continuing, make sure you’ve completed the SDK setup and requirements.

Overview

This guide walks you through how to send a transactional email using the Nuntly TypeScript SDK.

Send a HTML email

Send a Text email

Send both HTML and Text

Handle errors

A failed send throws an APIError when the API answers with an error status, and an APIConnectionError when it cannot be reached. Catch them where a failed email should not stop your flow:
To get errors as values instead of exceptions, create the client with createSafeNuntly. See SDKs and errors.

Learn more

Handle webhook events

Receive and process delivery, bounce, and open events in your app

Data retention

How long your emails and their events are kept

Framework guides

Send email from Next.js

Send from a Server Action and receive webhooks in a Route Handler

Send email from Express

Send from an Express route and verify webhooks on the raw body

Send email from NestJS

Inject the client as a provider and send from a service

Send email from Spring Boot

Use the Spring Boot starter on Java 21