Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 970 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 970 Bytes

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.