mailer

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string `json:"host" toml:"host" yaml:"host"`
	Port     int    `json:"port" toml:"port" yaml:"port"`
	User     string `json:"user" toml:"user" yaml:"user"`
	Password string `json:"password" toml:"password" yaml:"password"`
}

type Mailer

type Mailer interface {
	Attachment(name string, data []byte) Mailer
	Body(nodes ...gox.Node) Mailer
	Bytes() []byte
	Copy(values ...string) Mailer
	From(from string) Mailer
	HiddenCopy(values ...string) Mailer
	Subject(subject string) Mailer
	Title(title string) Mailer
	To(to ...string) Mailer
	Send() error
	String() string

	MustSend()
}

func New

func New(config Config) Mailer

Jump to

Keyboard shortcuts

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