Markdown brut

Quickstart · Go

Send transactional email through Envimaily's HTTP API (https://api.envimaily.com) with Go.

1. Account & key

  1. Sign up at https://app.envimaily.com/dev/signup
  2. Create an em_ key under API keys
  3. Copy the token once — it is not shown again

2. Example

package main

import (
  "bytes"
  "fmt"
  "net/http"
)

func main() {
  body := []byte(`{
    "from":"onboarding@envimaily.com",
    "to":["you@example.com"],
    "subject":"Hello from Go",
    "html":"<p>It works.</p>"
  }`)
  req, _ := http.NewRequest("POST", "https://api.envimaily.com/v1/emails", bytes.NewReader(body))
  req.Header.Set("Authorization", "Bearer em_YOUR_KEY")
  req.Header.Set("Content-Type", "application/json")
  res, err := http.DefaultClient.Do(req)
  if err != nil { panic(err) }
  defer res.Body.Close()
  fmt.Println(res.Status)
}

3. Without a verified domain

Use the shared test sender onboarding@envimaily.com and send only to the account owner email. After SPF/DKIM verification, send from your domain.

4. Limits

PlanMonthDay
Dev Free1,000100
Dev Pro50,0005,000

Next: Domains & DNS · Emails API · Migrate from Resend