Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SmtpClients ¶
type SmtpClients struct {
// contains filtered or unexported fields
}
func NewSmtpClients ¶
func NewSmtpClients(config SmtpServerList) (*SmtpClients, error)
func (*SmtpClients) SendMail ¶
func (sc *SmtpClients) SendMail( to []string, subject string, htmlContent string, overrides *messagingTypes.HeaderOverrides, ) error
type SmtpServer ¶
type SmtpServer struct { Host string `yaml:"host"` Port string `yaml:"port"` Connections int `yaml:"connections"` InsecureSkipVerify bool `yaml:"insecureSkipVerify"` AuthData struct { Username string `yaml:"user"` Password string `yaml:"password"` } `yaml:"auth"` SendTimeout int `yaml:"sendTimeout"` }
type SmtpServerList ¶
type SmtpServerList struct { Servers []SmtpServer `yaml:"servers"` From string `yaml:"from"` Sender string `yaml:"sender"` ReplyTo []string `yaml:"replyTo"` }
func (*SmtpServerList) ReadFromFile ¶
func (sl *SmtpServerList) ReadFromFile(fname string) (err error)
Click to show internal directories.
Click to hide internal directories.