Go SDK
Layout follows resend-go: client.Emails.Send.
github.com/pigeonfs/pigeon-go
All SDK libraries
API reference
Install
shell
go get github.com/pigeonfs/pigeon-go
Send an email
Go
package main import ( "context" "fmt" "log" pigeon "github.com/pigeonfs/pigeon-go" ) func main() { client := pigeon.NewClient("pg_your_key") email, err := client.Emails.Send(context.Background(), &pigeon.SendEmailRequest{ From: "Ada <ada@yourdomain.com>", To: []string{"person@example.com"}, Subject: "hello world", Html: "<strong>it works!</strong>", }) if err != nil { log.Fatal(err) } fmt.Printf("Email %s has been sent\n", email.Id) }