Documentation ¶
Index ¶
- func ConfigCheck(host string, port uint, username string, password string, ...) (checkRes string)
- func Healthcheck(ctx context.Context) error
- func IsValidAddress(addr string) bool
- func IsValidHost(host string) bool
- func New() *gomail.Message
- func Send(message *gomail.Message, dd ...Dialer) (err error)
- func SetupDialer(host string, port int, user, pass, from string, ff ...applyCfg)
- type Dialer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigCheck ¶
func ConfigCheck(host string, port uint, username string, password string, tlsConfig *tls.Config) (checkRes string)
ConfigCheck dials and authenticates to an SMTP server.
func IsValidAddress ¶
func IsValidHost ¶
func SetupDialer ¶
SetupDialer setups SMTP dialer
Host variable can contain "<host>:<port>" that will override port value
Types ¶
Click to show internal directories.
Click to hide internal directories.