Version: v0.18.5 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2021 License: MIT Imports: 7 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type AmazonSES

type AmazonSES struct {
	// contains filtered or unexported fields

AmazonSES struct holds necessary data to communicate with the Amazon Simple Email Service API.

func New

func New(accessKeyID, secretKey, region, senderAddress string) (*AmazonSES, error)

New returns a new instance of a AmazonSES notification service. You will need an Amazon Simple Email Service API access key and secret. See

func (*AmazonSES) AddReceivers

func (a *AmazonSES) AddReceivers(addresses ...string)

AddReceivers takes email addresses and adds them to the internal address list. The Send method will send a given message to all those addresses.

func (AmazonSES) Send

func (a AmazonSES) Send(ctx context.Context, subject, message string) error

Send takes a message subject and a message body and sends them to all previously set chats. Message body supports html as markup language.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL