smtp

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 34 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) 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