smtp

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: GPL-3.0 Imports: 39 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(modName string, addrs []string) (module.Module, error)

Types

type Endpoint

type Endpoint struct {
	Log log.Logger
	// contains filtered or unexported fields
}

func (*Endpoint) Close

func (endp *Endpoint) Close() error

func (*Endpoint) ConnectionCount added in v0.7.1

func (endp *Endpoint) ConnectionCount() int

func (*Endpoint) Init

func (endp *Endpoint) Init(cfg *config.Map) error

func (*Endpoint) InstanceName

func (endp *Endpoint) InstanceName() string

func (*Endpoint) Name

func (endp *Endpoint) Name() string

func (*Endpoint) NewSession added in v0.5.2

func (endp *Endpoint) NewSession(conn *smtp.Conn) (smtp.Session, error)

type Session

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

func (*Session) AuthPlain added in v0.5.2

func (s *Session) AuthPlain(username, password string) error

func (*Session) Data

func (s *Session) Data(r io.Reader) error

func (*Session) LMTPData

func (s *Session) LMTPData(r io.Reader, sc smtp.StatusCollector) error

func (*Session) Logout

func (s *Session) Logout() error

func (*Session) Mail

func (s *Session) Mail(from string, opts *smtp.MailOptions) error

func (*Session) Rcpt

func (s *Session) Rcpt(to string, opts *smtp.RcptOptions) error

func (*Session) Reset

func (s *Session) Reset()

Jump to

Keyboard shortcuts

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