Skip to content

srajelli/ses-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

ses-go

A simple wrapper for AWS SES in golang to send email

Sending an 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:      "someone@example.com",
		From:    "me@example.com",
		Text:    "Hi this is the text message body",
		Subject: "Sending email from aws ses api",
		ReplyTo: "me@example.com",
	}

	resp := ses.SendEmail(emailData)

	fmt.Println(resp)
}

About

A simple wrapper for Amazon SES in golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages