email

package
v0.0.0-...-9a1dd84 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ConfirmEmailTemplate = "confirm_email_template"
View Source
const TestTemplate = "test_template"
View Source
const WeeklyBirthTemplate = "weekly_birth_template"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfirmEmailTemplateDTO

type ConfirmEmailTemplateDTO struct {
	Title          string
	Message        string
	User           string
	Link           string
	UnaskedMessage string
	ConfirmButton  string
}

func NewConfirmEmailTemplateDTO

func NewConfirmEmailTemplateDTO(ctx context.Context) ConfirmEmailTemplateDTO

type MemberDTO

type MemberDTO struct {
	Name string
	Date string
}

type Service

type Service interface {
	SendTemplateEmail(template string, data any, subject string, recipients ...string) error
}

func NewEmailService

func NewEmailService(ses wrapper.SESAPI, fromEmail string) Service

type WeeklyBirthTemplateDTO

type WeeklyBirthTemplateDTO struct {
	Title           string
	BirthTitle      string
	MarriageTitle   string
	NameColumn      string
	DateColumn      string
	MembersBirth    []MemberDTO
	MembersMarriage []MemberDTO
}

func NewWeeklyBirthTemplateDTO

func NewWeeklyBirthTemplateDTO(ctx context.Context) WeeklyBirthTemplateDTO

Directories

Path Synopsis
Package mock_email is a generated GoMock package.
Package mock_email is a generated GoMock package.

Jump to

Keyboard shortcuts

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