Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailClient ¶
type EmailClient interface {
Send(context.Context, *SendEmailRequest) error
}
func NewSMTPClient ¶
func NewSMTPClient(host, port, username, password string) EmailClient
func NewSMTPClientFromEnv ¶
func NewSMTPClientFromEnv() EmailClient
Uses env var SMTP settings to establish new mail client. If settings are missing, nil is returned. Requires KEEL_SMTP_HOST, KEEL_SMTP_PORT, KEEL_SMTP_USER, and KEEL_SMTP_PASSWORD.
Click to show internal directories.
Click to hide internal directories.