Skip to main content

Prerequisites

To get the most out of this guide, you’ll need to:
You can find your API keys in your SendPost Dashboard. Make sure to use your Sub-Account API Key for sending emails.

1. Install

Install the SendPost JavaScript SDK using npm:
npm

2. Getting Started

Here’s a simple example to send your first email:
JavaScript
Make sure your sender email domain is verified in your SendPost account before sending emails.

3. Next Steps

Explore more examples and use cases:

JavaScript SDK

View the official SDK package on npm

SDK Examples

Comprehensive email sending examples including CC, BCC, and attachments

ESP Workflow Example

Full-featured example app with comprehensive ESP workflow