[reloop-email]
Go
Use the Go SDK for high-throughput services with context-aware requests and minimal dependencies.
1
Install the Go package
bash
go get github.com/reloop-labs/reloop-email2
Send email from Go
send_email.go
1package main2
3import (4 "context"5 "fmt"6 "os"7
8 reloopemail "github.com/reloop-labs/reloop-email"9)10
11func main() {12 reloop, _ := reloopemail.NewClient(reloopemail.ClientOptions{13 APIKey: os.Getenv("RELOOP_API_KEY"),14 })15
16 email, err := reloop.Emails().Send(context.Background(), &reloopemail.SendEmailParams{17 From: "Acme <onboarding@yourdomain.com>",18 To: []string{"delivered@yourdomain.com"},19 Subject: "Hello from Go",20 Html: "<strong>It works!</strong>",21 })22 if err != nil {23 panic(err)24 }25 fmt.Println("Email sent:", email.ID)26}3
GitHub, examples, and API reference
4
Need more help?
- Need help? Contact Support.
- Chat with Reloop developers on Discord.
- Check out our changelog.
- Questions? Contact Sales.
- LLM? Read llms.txt.
Send with Go.
Get an API key and ship transactional email from Go using the official SDK.