Documentation ¶
Index ¶
- func Init(opts ...Opt)
- func SendEmail(m *Message)
- type Config
- type Message
- type Opt
- func SetAuthentication(auth mail.AuthType) Opt
- func SetConnectTimeout(tm time.Duration) Opt
- func SetEncryption(enc mail.Encryption) Opt
- func SetHost(host string) Opt
- func SetKeepalive(keep bool) Opt
- func SetPassword(pass string) Opt
- func SetPort(port int) Opt
- func SetSendTimeout(tm time.Duration) Opt
- func SetTlsConfig(config *tls.Config) Opt
- func SetUsername(user string) Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Opt ¶
type Opt func(*Config)
func SetAuthentication ¶
func SetConnectTimeout ¶
func SetEncryption ¶
func SetEncryption(enc mail.Encryption) Opt
func SetKeepalive ¶
func SetPassword ¶
func SetSendTimeout ¶
func SetTlsConfig ¶
func SetUsername ¶
Click to show internal directories.
Click to hide internal directories.