A simple wrapper for AWS SES in golang to send email
package main
import (
"fmt"
"github.com/srajelli/ses-go"
)
func main() {
ses.SetConfiguration(aws_key_id, aws_secret_key, aws_region)
emailData := ses.Email{
To: "[email protected]",
From: "[email protected]",
Text: "Hi this is the text message body",
Subject: "Sending email from aws ses api",
ReplyTo: "[email protected]",
}
resp := ses.SendEmail(emailData)
fmt.Println(resp)
}