pinpointemail

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	// If use RawMessage, below fields are ignored.
	// see criteria: https://github.com/aws/aws-sdk-go/blob/master/service/pinpointemail/api.go#L5877
	RawMessage []byte

	// Simple messages
	SubjectCharset string
	Subject        string
	BodyCharset    string
	Body           string
	HTML           bool
}

Content has the entire content of the email.

func (Content) ToContent

func (c Content) ToContent() *SDK.EmailContent

type EmailInput

type EmailInput struct {
	From    string
	ReplyTo []string

	// destination
	To  []string
	Cc  []string
	Bcc []string

	// message
	Content Content

	// email address for bounce
	FeedbackForwardingEmail string

	ConfigurationSetName string
	Tags                 []Tag
}

func (EmailInput) ToInput

func (in EmailInput) ToInput() *SDK.SendEmailInput

type PinpointEmail

type PinpointEmail struct {
	// contains filtered or unexported fields
}

PinpointEmail has PinpointEmail client.

func New

func New(conf config.Config) (*PinpointEmail, error)

New returns initialized *PinpointEmail.

func (*PinpointEmail) DoSendEmail

func (svc *PinpointEmail) DoSendEmail(in *SDK.SendEmailInput) (string, error)

DoSendEmail executes SendEmail operation.

func (*PinpointEmail) Errorf

func (svc *PinpointEmail) Errorf(format string, v ...interface{})

Errorf logging error information.

func (*PinpointEmail) Infof

func (svc *PinpointEmail) Infof(format string, v ...interface{})

Infof logging information.

func (*PinpointEmail) SendEmail

func (svc *PinpointEmail) SendEmail(in EmailInput) (string, error)

SendEmail sends email.

func (*PinpointEmail) SendEmailSimple

func (svc *PinpointEmail) SendEmailSimple(subject, body, from string, to ...string) (string, error)

SendEmailSimple sends email from simple arguments.

func (*PinpointEmail) SetLogger

func (svc *PinpointEmail) SetLogger(logger log.Logger)

SetLogger sets logger.

type Tag

type Tag struct {
	Name  string
	Value string
}

func (Tag) ToTag

func (t Tag) ToTag() *SDK.MessageTag

Jump to

Keyboard shortcuts

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