Versions in this module Expand all Collapse all v0 v0.1.1 Sep 2, 2022 Changes in this version + type Stats struct + NumAlreadySent int + NumError int + NumSent int + NumSkip int + Total int v0.1.0 Sep 1, 2022 Changes in this version + const ActAbortSend + const ActContinueError + const ActDontSend + const ActSend + const ActSendAll + const HtmlFormat + const PlainFormat + type Config struct + Delivery *DeliveryConfig + Server *ServerConfig + Tls *TlsConfig + Verbose bool + func DefaultConfig() *Config + func LoadConfig(filename string) (*Config, error) + type DeliveryConfig struct + BccList string + CcList string + DataFile string + DefaultSubject string + From string + IntervalBetweenSend string + MailFormat string + RequiredFields []string + SendMode bool + SentFile string + SkipConfirmBeforeSend bool + SkipIfSent bool + SubjectDataField string + TemplateFiles []string + TemplateName string + TestAddress string + ToDataField string + type Executer interface + Execute func(wr io.Writer, data any) error + func ParseHtmlTemplates(conf *Config) (Executer, error) + func ParseTextTemplates(conf *Config) (Executer, error) + type MailData map[string]interface + func (m MailData) HasFields(reqFields []string) bool + func (m MailData) StringDefault(key, def string) string + type MailDataCollection struct + Data []MailData + func NewMailDataCollection(conf *Config) (*MailDataCollection, error) + type Mailer struct + func NewMailer(conf *Config) (*Mailer, error) + func (m *Mailer) Send(ctx context.Context) error + type ServerConfig struct + Authentication string + ConnectTimeout string + Encryption string + Helo string + Host string + KeepAlive bool + Password string + Port int + SendTimeout string + Username string + func (s *ServerConfig) Configure(srv *mail.SMTPServer) error + type TlsConfig struct + CertFile string + ClientAuth string + InsecureSkipVerify bool + KeyFile string + ServerName string + func (t *TlsConfig) MakeTlsConfig() (*tls.Config, error) + type Ui interface + Confirm func(msg string) (int, error) + Logf func(format string, args ...any) (int, error) + func NewUi(conf *Config) (Ui, error)