Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MailTransporter ¶
type MockMailTransport ¶
func NewMock ¶
func NewMock() *MockMailTransport
func (*MockMailTransport) GetLastSentMail ¶
func (m *MockMailTransport) GetLastSentMail() *email.Email
func (*MockMailTransport) GetSentMails ¶
func (m *MockMailTransport) GetSentMails() []*email.Email
type SMTPAuthType ¶
type SMTPAuthType int
const ( // SMTPAuthTypeNone indicates no SMTP authentication should be performed. SMTPAuthTypeNone SMTPAuthType = iota // SMTPAuthTypePlain indicates SMTP authentication should be performed using the "AUTH PLAIN" protocol. SMTPAuthTypePlain // SMTPAuthTypeCRAMMD5 indicates SMTP authentication should be performed using the "CRAM-MD5" protocol. SMTPAuthTypeCRAMMD5 // SMTPAuthTypeLogin indicates SMTP authentication should be performed using the "LOGIN" protocol. SMTPAuthTypeLogin )
func SMTPAuthTypeFromString ¶
func SMTPAuthTypeFromString(s string) SMTPAuthType
func (SMTPAuthType) String ¶
func (t SMTPAuthType) String() string
type SMTPMailTransport ¶
type SMTPMailTransport struct {
// contains filtered or unexported fields
}
func NewSMTP ¶
func NewSMTP(config SMTPMailTransportConfig) *SMTPMailTransport
type SMTPMailTransportConfig ¶
Click to show internal directories.
Click to hide internal directories.