mailing

package module
v0.0.0-...-563e29a Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SendEmailsRequest

type SendEmailsRequest struct {
	To      []string
	Sender  string
	Subject string
	Title   string
	Body    string
}

func (*SendEmailsRequest) FormatEmails

func (r *SendEmailsRequest) FormatEmails(templateFileName string) error

func (*SendEmailsRequest) PostEmails

func (r *SendEmailsRequest) PostEmails(secret string) error

type Service

type Service interface {
	SendEmails(ctx context.Context, req *SendEmailsRequest, mails []string) error
}

func NewService

func NewService(logger *zap.Logger, secret string) Service

type TemplateData

type TemplateData struct {
	CODE    string
	CONTENT template.HTML
	TITLE   string
}

Jump to

Keyboard shortcuts

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