Skip to content
/ go-ses Public
forked from josip/amzses

Go package to send email using Amazon's SES

License

Notifications You must be signed in to change notification settings

bearbin/go-ses

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-ses

This is a Go package to send emails using Amazon's Simple Email Service.

Installation

go get github.com/bearbin/go-ses

Usage

Then create and use an ses object:

ses, err := ses.Init(username, secretkey, endpoint)
response, err := ses.SendMail("info@example.com", "user@gmail.com", "Welcome!", "Welcome to our project!\n\n...")

The first return value is the response string from the server. To extract the message and request IDs:

var resp ses.AmazonResponse
err := xml.Unmarshal([]byte(response), &resp)
// resp.MessageId, resp.RequestId

About

The original library was written by Patrick Crosby at StatHat.

About

Go package to send email using Amazon's SES

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%