ses

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmailService

func NewEmailService(ess model.EmailServiceSettings, templater *model.EmailTemplater) (model.EmailService, error)

NewEmailService creates new email service.

Types

type EmailService

type EmailService struct {
	Sender string
	// contains filtered or unexported fields
}

EmailService sends email with Amazon Simple Email Service.

func (*EmailService) SendHTML

func (es *EmailService) SendHTML(subject, html, recipient string) error

SendHTML sends email with html.

func (*EmailService) SendInviteEmail

func (es *EmailService) SendInviteEmail(subject, recipient string, data interface{}) error

SendInviteEmail sends invite email to the recipient.

func (*EmailService) SendMessage

func (es *EmailService) SendMessage(subject, body, recipient string) error

SendMessage sends email with plain text.

func (*EmailService) SendResetEmail

func (es *EmailService) SendResetEmail(subject, recipient string, data interface{}) error

SendResetEmail sends reset password emails.

func (*EmailService) SendTFAEmail

func (es *EmailService) SendTFAEmail(subject, recipient string, data interface{}) error

SendTFAEmail sends emails with one-time password.

func (*EmailService) SendTemplateEmail

func (es *EmailService) SendTemplateEmail(subject, recipient string, template *template.Template, data interface{}) error

SendTemplateEmail applies html template to the specified data and sends it in an email.

func (*EmailService) SendVerifyEmail

func (es *EmailService) SendVerifyEmail(subject, recipient string, data interface{}) error

SendVerifyEmail sends email address verification emails.

func (*EmailService) SendWelcomeEmail

func (es *EmailService) SendWelcomeEmail(subject, recipient string, data interface{}) error

SendWelcomeEmail sends welcoming emails.

func (*EmailService) Templater

func (es *EmailService) Templater() *model.EmailTemplater

Templater returns email service templater.

Jump to

Keyboard shortcuts

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