smtp

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: GPL-3.0 Imports: 42 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(c *container.C, modName string, addrs []string) (container.LifetimeModule, error)

Types

type Endpoint

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

func (*Endpoint) Configure added in v0.9.0

func (endp *Endpoint) Configure(_ []string, cfg *config.Map) error

func (*Endpoint) ConnectionCount added in v0.7.1

func (endp *Endpoint) ConnectionCount() int

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)

func (*Endpoint) Start added in v0.9.0

func (endp *Endpoint) Start() error

func (*Endpoint) Stop added in v0.9.0

func (endp *Endpoint) Stop() error

type Session

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

func (*Session) Auth added in v0.8.1

func (s *Session) Auth(mech string) (sasl.Server, error)

func (*Session) AuthMechanisms added in v0.8.1

func (s *Session) AuthMechanisms() []string

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