smtp

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: GPL-3.0 Imports: 37 Imported by: 0

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) AnonymousLogin

func (endp *Endpoint) AnonymousLogin(state *smtp.ConnectionState) (smtp.Session, error)

func (*Endpoint) Close

func (endp *Endpoint) Close() error

func (*Endpoint) Init

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

func (*Endpoint) InstanceName

func (endp *Endpoint) InstanceName() string

func (*Endpoint) Login

func (endp *Endpoint) Login(state *smtp.ConnectionState, username, password string) (smtp.Session, error)

func (*Endpoint) Name

func (endp *Endpoint) Name() string

type Session

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

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) 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