docs/go-smtp/index (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
Variables
func SendMail(addr string, a sasl.Client, from string, to []string, r io.Reader) error
func SendMailTLS(addr string, a sasl.Client, from string, to []string, r io.Reader) error
type AuthSession
type Backend
type BackendFunc
func (f BackendFunc) NewSession(c *Conn) (Session, error)
type BodyType
type Client
func Dial(addr string) (*Client, error)
func DialStartTLS(addr string, tlsConfig *tls.Config) (*Client, error)
func DialTLS(addr string, tlsConfig *tls.Config) (*Client, error)
func NewClient(conn net.Conn) *Client
func NewClientLMTP(conn net.Conn) *Client
func NewClientStartTLS(conn net.Conn, tlsConfig *tls.Config) (*Client, error)
func (c *Client) Auth(a sasl.Client) error
func (c *Client) Close() error
func (c *Client) Data() (*DataCommand, error)
func (c *Client) Extension(ext string) (bool, string)
func (c *Client) Hello(localName string) error
func (c *Client) Mail(from string, opts *MailOptions) error
func (c *Client) MaxMessageSize() (size int, ok bool)
func (c *Client) Noop() error
func (c *Client) Quit() error
func (c *Client) Rcpt(to string, opts *RcptOptions) error
func (c *Client) Reset() error
func (c *Client) SendMail(from string, to []string, r io.Reader) error
func (c *Client) SupportsAuth(mech string) bool
func (c *Client) TLSConnectionState() (state tls.ConnectionState, ok bool)
func (c *Client) Verify(addr string) error
type Conn
func (c *Conn) Close() error
func (c *Conn) Conn() net.Conn
func (c *Conn) Hostname() string
func (c *Conn) Reject()
func (c *Conn) Server() *Server
func (c *Conn) Session() Session
func (c *Conn) TLSConnectionState() (state tls.ConnectionState, ok bool)
type DSNAddressType
type DSNNotify
type DSNReturn
type DataCommand
func (cmd *DataCommand) Close() error
func (cmd *DataCommand) CloseWithLMTPResponse() (map[string]*DataResponse, error)
func (cmd *DataCommand) CloseWithResponse() (*DataResponse, error)
func (cmd *DataCommand) Write(b []byte) (int, error)
type DataResponse
type DeliverByMode
type DeliverByOptions
type EnhancedCode
type LMTPDataError
func (lmtpErr LMTPDataError) Error() string
func (lmtpErr LMTPDataError) Unwrap() []error
type LMTPSession
type Logger
type MailOptions
type PriorityProfile
type RcptOptions
type SMTPError
func (err *SMTPError) Error() string
func (err *SMTPError) Temporary() bool
type Server
func NewServer(be Backend) *Server
func (s *Server) Close() error
func (s *Server) ListenAndServe() error
func (s *Server) ListenAndServeTLS() error
func (s *Server) Serve(l net.Listener) error
func (s *Server) Shutdown(ctx context.Context) error
type Session
type StatusCollector
|