mail

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileAttachment

type FileAttachment struct {
	FileName    string
	Data        []byte
	ContentType string
}

type Mailer

type Mailer interface {
	SendMail(subject string, tmpl string, data interface{}, file FileAttachment) error
}

type Sender

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

func NewSender

func NewSender(mailConfig config.MailConfig, templates fs.FS) *Sender

func (*Sender) SendMail

func (s *Sender) SendMail(subject string, tmpl string, data interface{}, file FileAttachment) error

Jump to

Keyboard shortcuts

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