> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sendkit.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Go

> Send emails from Go using the SendKit SDK.

<CardGroup cols={2}>
  <Card title="Source Code" icon="github" href="https://github.com/sendkitdev/sendkit-go">
    View on GitHub
  </Card>

  <Card title="Package" icon="box" href="https://pkg.go.dev/github.com/sendkitdev/sendkit-go">
    View on pkg.go.dev
  </Card>
</CardGroup>

## Install

```bash theme={null}
go get github.com/sendkitdev/sendkit-go
```

## Send email

```go theme={null}
package main

import (
    "context"
    "fmt"
    sendkit "github.com/sendkitdev/sendkit-go"
)

func main() {
    client, _ := sendkit.NewClient("sk_your_api_key")

    resp, _ := client.Emails.Send(context.Background(), &sendkit.SendEmailParams{
        From:    "Your Name <you@yourdomain.com>",
        To:      []string{"recipient@example.com"},
        Subject: "Hello from SendKit",
        HTML:    "<h1>Welcome!</h1><p>Your first email with SendKit.</p>",
    })

    fmt.Println("Email sent:", resp.ID)
}
```
