We're ending the year with a new SDK! Our Go SDK makes it easy to integrate Lettermint into your Go applications. Send transactional emails and broadcast emails from your Golang code.
Go has been around since 2009 and is now at version 1.25. Where you previously sent emails via SMTP or a custom integration, our SDK lets you get started right away without complex configuration.
The SDK supports all our standard features like attachments, tags and idempotency keys.
Here's an example:
client, _ := lettermint.New("your-api-token")
resp, err := client.Email(ctx).
From("sender@example.com").
To("recipient@example.com").
Subject("Hello from Lettermint").
Text("This is a test email sent using the Lettermint Go SDK.").
Send()
- Check out the Go SDK on GitHub
- Read the documentation at docs.lettermint.co
Besides Go, we also have SDKs for PHP, Laravel, Node.js and Python.