Name: go-ses
Owner: Sourcegraph
Description: Amazon AWS Simple Email Service (SES) client for Go
Created: 2013-06-11 23:31:50.0
Updated: 2018-01-11 20:39:19.0
Pushed: 2016-04-05 16:09:40.0
Homepage: https://sourcegraph.com/github.com/sourcegraph/go-ses
Size: 16
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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):
age ses_test
rt (
"fmt"
"github.com/sourcegraph/go-ses"
Example() {
// Change the From address to a sender address that is verified in your Amazon SES account.
from := "notify@sourcegraph.com"
to := "success@simulator.amazonses.com"
// EnvConfig uses the AWS credentials in the environment variables $AWS_ACCESS_KEY_ID and
// $AWS_SECRET_KEY.
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:/...
$AWS_ACCESS_KEY_ID
and $AWS_SECRET_KEY
and $AWS_SES_ENDPOINT
.https://email.us-west-2.amazonaws.com
go test -from=user@example.com
, where user@example.com
is a sender address that is verified
in your Amazon SES account.2013-06-11 (forked from stathat/amzses)