Versions in this module Expand all Collapse all v1 v1.1.1 Oct 25, 2023 Changes in this version + const TemplateExpiration + const TemplateRetries + type MailTemplate struct + type Mailer struct + BaseURL string + From string + FuncMap template.FuncMap + Host string + Logger logrus.FieldLogger + Pass string + Port int + User string + func (m *Mailer) Mail(to, subjectTemplate, templateURL, defaultTemplate string, ...) error + func (m *Mailer) MailBody(url string, defaultTemplate string, data map[string]interface{}) (string, error) + type TemplateCache struct + func (t *TemplateCache) Get(url string) (*template.Template, error) + func (t *TemplateCache) Set(key, value string, expirationTime time.Duration) (*template.Template, error)