New: the MailCraft MCP server is live — connect your AI agent in one line. Connect your agent →
SDKs

Go

Coming soon

A lightweight, dependency-free Go client for the MailCraft API.

The Go SDK isn't released yet — this page shows its planned API. You can send from Go today by calling the REST API directly.

Install

terminal
go get github.com/mail-craft/mailcraft-go

Send email

Send from a verified sender on one of your domains.

main.go
client := mailcraft.NewClient(os.Getenv("MAILCRAFT_API_KEY"))

_, err := client.Emails.Send(ctx, &mailcraft.SendEmailParams{
    From:    "[email protected]",
    To:      []string{"[email protected]"},
    Subject: "Welcome!",
    HTML:    "<p>Thanks for signing up.</p>",
})

Keep your API key in the MAILCRAFT_API_KEY environment variable, never in source control. Create one under Settings → API keys, scoped to just what this app needs.

Next steps