Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoConf = errors.New("email service not configured")
ErrNoConf = email service not configured
Functions ¶
func Setup ¶
func Setup(conf EmailServerConfiguration, onMailSend func(err error)) error
Setup sets up the email sender
Types ¶
type EmailServerConfiguration ¶
type EmailServerConfiguration struct { // Hostname and Port of the smtp server Host string Port string // Authentication fields Identity string Username string Password string // The email address to send emails from From string }
EmailServerConfiguration contains the configuration for the email server
func EmailServerConfigurationFromEnv ¶
func EmailServerConfigurationFromEnv() EmailServerConfiguration
EmailServerConfigurationFromEnv generates the EmailServerConfiguration from the environment variables
Click to show internal directories.
Click to hide internal directories.