ses

package
v1.254.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidParameterValueErrorString = "InvalidParameterValue"
)

Variables

View Source
var (
	ErrorSESClientNotEstablished = errors.Error("could not establish an SES client")
)

Functions

This section is empty.

Types

type ClientWithHelpers

type ClientWithHelpers struct {
	SESClient *ses.Client
}

func GetClient

func GetClient(region ...string) *ClientWithHelpers

func NewClient

func NewClient(cfg aws.Config) *ClientWithHelpers

func (*ClientWithHelpers) SendEmail

func (c *ClientWithHelpers) SendEmail(email Email, emfNamespace string, isDebug bool) (*ses.SendRawEmailOutput, error)

type Email

type Email struct {
	Recipient           string                 `json:"recipient"`
	FromName            string                 `json:"from_name"`
	FromEmail           string                 `json:"from_email"`
	Subject             string                 `json:"subject"`
	EmailCcName         string                 `json:"email_cc_name"`
	EmailCcAddress      string                 `json:"email_cc_address"`
	ReplyToEmailAddress string                 `json:"reply_to_email_address"`
	Body                EmailBody              `json:"body"`
	Attachments         *[]s3.S3UploadResponse `json:"attachments"`
}

type EmailBody

type EmailBody struct {
	HTMLBody string `json:"html_body"`
	TextBody string `json:"text_body"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL