mailer

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT, MIT Imports: 10 Imported by: 0

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"`
	From     string `json:"from" toml:"from" yaml:"from"`
}

type Mailer

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

	MustSend()
	MustBytes() []byte
	MustString() string
}

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