Skip to content
This repository has been archived by the owner. It is now read-only.
Amazon AWS Simple Email Service (SES) client for Go
Branch: master
Clone or download
sqs Merge pull request #6 from Fyb3roptik/patch-1
Added SES Endpoint to documentation
Latest commit 6bd8d17 Apr 6, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore move files from private to public Dec 18, 2011
example_test.go Use env var name AWS_SECRET_KEY (more standard), not AWS_SECRET_ACCES… Feb 28, 2014

go-ses - send email using Amazon AWS Simple Email Service

xrefs funcs top func library users status

go-ses is an API client library for Amazon AWS Simple Email Service (SES). It is a fork of Patrick Crosby's stathat/amzses.

Note: the public API is experimental and subject to change until further notice.


Documentation: go-ses on Sourcegraph.

Example: example_test.go (Sourcegraph):

package ses_test

import (

func Example() {
	// Change the From address to a sender address that is verified in your Amazon SES account.
	from := ""
	to := ""

	// EnvConfig uses the AWS credentials in the environment variables $AWS_ACCESS_KEY_ID and
	res, err := ses.EnvConfig.SendEmail(from, to, "Hello, world!", "Here is the message body.")
	if err == nil {
		fmt.Printf("Sent email: %s...\n", res[:32])
	} else {
		fmt.Printf("Error sending email: %s\n", err)

	// output:
	// Sent email: <SendEmailResponse xmlns="http:/...

Running tests

  1. Set the environment variables $AWS_ACCESS_KEY_ID and $AWS_SECRET_KEY and $AWS_SES_ENDPOINT.
  2. Example SES Endpoint
  3. Run go test, where is a sender address that is verified in your Amazon SES account.



2013-06-11 (forked from stathat/amzses)

  • renamed API functions to be consistent with AWS SES API endpoints
  • reads AWS credentials from a Config struct, not from a config file
  • added runnable example_test.go
You can’t perform that action at this time.