Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCramMd5 ¶
type AuthCramMd5 struct {
// contains filtered or unexported fields
}
func NewAuthCramMd5 ¶
func NewAuthCramMd5(user string, password string) *AuthCramMd5
func (*AuthCramMd5) Authenticate ¶
func (a *AuthCramMd5) Authenticate(client *smtp.Client) error
func (*AuthCramMd5) Check ¶
func (a *AuthCramMd5) Check() error
func (*AuthCramMd5) GetType ¶
func (a *AuthCramMd5) GetType() types.AuthenticationMethod
type AuthNone ¶
type AuthNone struct {
}
func NewAuthNone ¶
func NewAuthNone() *AuthNone
func (*AuthNone) GetType ¶
func (a *AuthNone) GetType() types.AuthenticationMethod
type AuthPlain ¶
type AuthPlain struct {
// contains filtered or unexported fields
}
func (*AuthPlain) GetType ¶
func (a *AuthPlain) GetType() types.AuthenticationMethod
type SmtpAuthentication ¶
type SmtpAuthentication interface {
Check() error
Authenticate(client *smtp.Client) error
GetType() types.AuthenticationMethod
}
func GetAuthentication ¶
func GetAuthentication(st *cmdflags.Settings) (SmtpAuthentication, error)
Click to show internal directories.
Click to hide internal directories.