SDKs
Go
Coming soonA lightweight, dependency-free Go client for the MailCraft API.
Source codegithub.com/mail-craft/mailcraft-go
PackageNot on pkg.go.dev yet
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-goSend 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.