/ses-go

An easy way to use the Amazon Simple Email Service(SES) to send emails.

Primary LanguageGoApache License 2.0Apache-2.0

SES

Go Report Card PkgGoDev License


An easy way to use the Amazon Simple Email Service(SES) api to send emails.

Installation

go get github.com/Blank-Xu/ses-go

Simple Example

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)
}

License

This project is under Apache 2.0 License. See the LICENSE file for the full license text.