Skip to main content

Go SDK

The jetemail-go module is the official Go SDK for JetEmail transactional email (MIT license, Go 1.21+). Create a transactional API key in the dashboard: OutboundKeys → Add API key. Use that key with the SDK.

Installation

Quick start

Use a From address on a verified domain (see Getting started).

Constructor

client.Email.Send(options)

Send a single email. Response shape: SendEmailResponse{ ID string, Response string }.

client.Batch.Send(emails)

Send up to 100 emails in one request. Returns Summary (Total, Successful, Failed) and Results per message.

Attachments

Error handling

Common status codes: 400 invalid request, 401 bad/missing API key, 500 server error.
For additional examples and the full option list, see the GitHub repository. REST details: API reference.