
Send email with Go.
Use the official Parcel Wing SDK to send product and campaign email from Go with a small, standard-library-friendly client.
Start with one send, then grow into verified domains, deliverability tooling, and inbox visibility on the same platform.
Start with one send.
Install the module, create a client, and send your first email with typed request structs and standard `context` support.
Package
github.com/parcelwing/parcelwing-go
Install
go get github.com/parcelwing/parcelwing-go
1package main23import (4"context"5"fmt"6"log"78parcelwing "github.com/parcelwing/parcelwing-go"9)1011func main() {12client, err := parcelwing.New("pw_xxxxxxxxx")13if err != nil {14log.Fatal(err)15}1617emails, err := client.Emails.Send(context.Background(), parcelwing.EmailSendRequest{18From: "Parcel Wing <[email protected]>",19To: "[email protected]",20Subject: "Hello World",21HTML: "<strong>It works!</strong>",22})23if err != nil {24log.Fatal(err)25}2627fmt.Println(emails[0].ID)28}
Resources
Everything nearby while you integrate.
parcelwing-go
Browse the official SDK source, releases, and package history.
Example repo
Start from a small working app instead of assembling the first send by hand.
Quickstart docs
Wire up your API key, domain, and first message with the shortest path to green.
API reference
Keep the object model, method signatures, and send options close while you build.
Why this SDK
A Go SDK built for small dependencies and real app traffic.
Simple first send
Get from install to live email quickly without building around a throwaway demo integration.
Typed requests, familiar transport
Keep request payloads explicit with Go structs while staying close to the standard `net/http` model your services already use.
Production-friendly path
Use the same platform for password resets, invites, receipts, alerts, and lifecycle messaging.
Deliverability built in
Layer in domains, routing, and deeper delivery visibility when the stakes rise.
Workflow
Move from install to live sends fast.
Step 1
Install the module
Add `github.com/parcelwing/parcelwing-go`, initialize a client, and keep configuration close to the rest of your service setup.
Step 2
Send your first email
Ship one useful message with a typed request struct, then use the queued email response in logs, handlers, or jobs.
Step 3
Scale on the same integration
Add domain setup, routing, and deliverability tooling later without replacing your send flow or transport assumptions.
