mailkit

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

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

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

type Mail

type Mail struct {
	From     string
	To       []string
	CC       []string
	Subject  string
	BodyHTML string
	BodyText string
}

type Mailset

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

func NewMailSet

func NewMailSet() *Mailset

func (*Mailset) CreateBlock

func (m *Mailset) CreateBlock(name string, args interface{}) *Block

func (*Mailset) GenerateMail

func (m *Mailset) GenerateMail(from string, to string, subject string, master *Block, blocks ...*Block) (*Mail, error)

func (*Mailset) RegisterBlock

func (m *Mailset) RegisterBlock(name string, htmlTemplate string, textTemplate string)

func (*Mailset) RegisterBlocksFromFS

func (m *Mailset) RegisterBlocksFromFS(filesystem fs.FS)

func (*Mailset) RenderHTML

func (m *Mailset) RenderHTML(master *Block, blocks ...*Block) (string, error)

func (*Mailset) RenderText

func (m *Mailset) RenderText(master *Block, blocks ...*Block) (string, error)

type Sender

type Sender interface {
	Send(mail *Mail) error
}

func NewAmazonSWSSender

func NewAmazonSWSSender(awsAccessKey string, awsSecretKey string, awsRegion string) Sender

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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