Documentation
¶
Index ¶
- func NewSMTPSService(conf Config, tlsOpts TLSOptions) service.Service
- func NewSMTPService(conf Config) service.Service
- func NewServer(conf Config, tlsOpts *TLSOptions, logger *slog.Logger) (*smtp.Server, error)
- type Backend
- type Config
- type Server
- type Session
- func (s *Session) Auth(mech string) (sasl.Server, error)
- func (s *Session) AuthMechanisms() []string
- func (s *Session) Data(r io.Reader) error
- func (s *Session) Logout() error
- func (s *Session) Mail(from string, opts *smtp.MailOptions) error
- func (s *Session) Rcpt(to string, opts *smtp.RcptOptions) error
- func (s *Session) Reset()
- type TLSOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSMTPSService ¶
func NewSMTPSService(conf Config, tlsOpts TLSOptions) service.Service
func NewSMTPService ¶
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements SMTP server methods.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session represents an SMTP session.
func (*Session) AuthMechanisms ¶
AuthMechanisms returns available authentication mechanisms.
func (*Session) Mail ¶
func (s *Session) Mail(from string, opts *smtp.MailOptions) error
Mail handles MAIL FROM command.
type TLSOptions ¶
Click to show internal directories.
Click to hide internal directories.