mailer_lib

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

README

mailer-lib

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	FileName string
	Data     []byte
}

type ConfigMailer

type ConfigMailer struct {
	AWSRegion string
	FromMail  string
}

type Mailer

type Mailer struct {
	Log    *zap.Logger
	Config ConfigMailer
}

func NewMailer

func NewMailer(log *zap.Logger, config ConfigMailer) *Mailer

func (*Mailer) SendMail

func (mailer *Mailer) SendMail(msg Message) error

type Message

type Message struct {
	To          []string
	Title       string
	Template    *Template
	Attachments *[]Attachment `json:"attachments"`
}

type Template

type Template struct {
	PathBase string
	FileName string
	Data     interface{}
}

type TemplatePath

type TemplatePath string

Jump to

Keyboard shortcuts

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