An easy way to use the Amazon Simple Email Service(SES) api to send emails.
go get github.com/Blank-Xu/ses-go
package main
import (
ses "github.com/Blank-Xu/ses-go"
"fmt"
)
func main() {
api := ses.NewAPI(endpoint, from, accessKeyID, secretAccessKey)
body, err := api.SendMail(subject, bodyText, toAddresses)
fmt.Println(body, err)
body2, err := api.SendHTMLMail(subject, bodyHTML, toAddresses)
fmt.Println(body2, err)
}
This project is under Apache 2.0 License. See the LICENSE file for the full license text.