smtp

package
v0.0.0-...-d5751c4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mail

type Mail struct {
	Dialer *gomail.Dialer
	// contains filtered or unexported fields
}

func New

func New(options *Options) (*Mail, error)

func (*Mail) Send

func (m *Mail) Send(to []string, subject, body []byte, attachments []string) error

type Options

type Options struct {
	Host     string
	Port     int
	Username string
	Password string
	From     string
}

type Sender

type Sender interface {
	Send(to []string, subject, body []byte, attachments []string) error
}

Jump to

Keyboard shortcuts

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