Documentation
¶
Index ¶
- func LoginAuth(username, password string) smtp.Auth
- type EmailSender
- type Option
- func AuthProtocol(authProtocol string) Option
- func FromAddress(fromAddress string) Option
- func FromName(fromName string) Option
- func Host(host string) Option
- func IDLETimeout(idleTimeout int64) Option
- func MaxConnections(maxConnections int64) Option
- func Password(password string) Option
- func Port(port string) Option
- func Retries(retries int64) Option
- func TypeTLS(typeTls string) Option
- func Username(username string) Option
- func WaitTimeout(waitTimeout int64) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EmailSender ¶
type EmailSender interface { Configure(...Option) EmailSender SendEmail(subject, content string, to, cc, bcc []string, attachFiles []string) error }
func NewEmailSender ¶
func NewEmailSender() EmailSender
type Option ¶
type Option func(*emailSender)
func AuthProtocol ¶
func FromAddress ¶
func IDLETimeout ¶
func MaxConnections ¶
func WaitTimeout ¶
Click to show internal directories.
Click to hide internal directories.