sender

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 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 Body

type Body struct {
	Name, AccountantName, Month, Year, Phone, Address string
	FileNames                                         []string
}

type Message

type Message struct {
	To           []string
	CC           []string
	BCC          []string
	Subject      string
	Body         Body
	Attachments  map[string][]byte
	TemplateHtml []string
}

func NewMessage

func NewMessage(s string, b Body, tmpl []string) *Message

func (*Message) AttachFile

func (u *Message) AttachFile(src string) error

type Sender

type Sender interface {
	Send(m *Message) error
}

func NewSender

func NewSender(email, password string) Sender

Jump to

Keyboard shortcuts

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