Versions in this module Expand all Collapse all v1 v1.0.47 Jan 26, 2024 Changes in this version + var EmailTemplateBody = map[string]string + var EmailTemplateSubject = map[string]string + type Config struct + EmailProviders []*EmailProvider + FileProviders []*FileProvider + func (cfg *Config) Add(c Provider) error + func (cfg *Config) ExtractEmailProvider(s string) *EmailProvider + func (cfg *Config) ExtractFileProvider(s string) *FileProvider + func (cfg *Config) FindProvider(s string) bool + func (cfg *Config) FindProviderCredentials(s string) string + func (cfg *Config) GetProviderType(s string) string + type EmailProvider struct + Address string + BlindCarbonCopy []string + Credentials string + Name string + Passwordless bool + Protocol string + SenderEmail string + SenderName string + Templates map[string]string + func (e *EmailProvider) Send(req *EmailProviderSendInput) error + func (e *EmailProvider) Validate() error + type EmailProviderSendInput struct + Body string + Credentials *credentials.Generic + Recipients []string + Subject string + type FileProvider struct + Name string + RootDir string + Templates map[string]string + func (e *FileProvider) Validate() error + func (p *FileProvider) Send(req *FileProviderSendInput) error + type FileProviderSendInput struct + Body string + Recipients []string + Subject string + type Provider interface + Validate func() error