Documentation
¶
Index ¶
- func NewMailersFromConfig(config *fs.MailConfig) ([]fs.Mailer, error)
- func NewSMTPMailer(name string, config *SMTPConfig) (fs.Mailer, error)
- type Backend
- type MockSMTPServer
- type SMTPConfig
- type SMTPMailer
- 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 (*Session) Logout() error
- func (s *Session) Mail(from string, _ *smtp.MailOptions) error
- func (s *Session) Rcpt(to string, _ *smtp.RcptOptions) error
- func (*Session) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMailersFromConfig ¶
func NewMailersFromConfig(config *fs.MailConfig) ([]fs.Mailer, error)
func NewSMTPMailer ¶
func NewSMTPMailer(name string, config *SMTPConfig) (fs.Mailer, error)
Types ¶
type Backend ¶
type MockSMTPServer ¶
func CreateMockSMTPServer ¶
func CreateMockSMTPServer(addresses ...string) (_ *MockSMTPServer, err error)
type SMTPConfig ¶
type SMTPMailer ¶
type SMTPMailer struct {
// contains filtered or unexported fields
}
func (*SMTPMailer) Driver ¶
func (s *SMTPMailer) Driver() string
func (*SMTPMailer) Name ¶
func (s *SMTPMailer) Name() string
Click to show internal directories.
Click to hide internal directories.