Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Accounts []EmailAccount `yaml:"accounts"` TagMapping map[string]Message `yaml:"tags"` }
Config represents the overall configuration structure.
func LoadConfig ¶
LoadConfig reads the configuration from the specified YAML file.
type EmailAccount ¶
type EmailAccount struct { Name string `yaml:"name"` Email string `yaml:"email"` SMTP SMTPConfig `yaml:"smtp"` }
EmailAccount represents an email account configuration.
type Message ¶
type Message struct { From string `yaml:"from"` To []string `yaml:"to"` CC []string `yaml:"cc"` BCC []string `yaml:"bcc"` Subject string `yaml:"subject"` Body string `yaml:"body"` IncludeAttachment bool `yaml:"include_attachment"` // contains filtered or unexported fields }
func (*Message) AttachFile ¶
type SMTPConfig ¶
type SMTPConfig struct { Server string `yaml:"server"` Port int `yaml:"port"` Username string `yaml:"username"` Password string `yaml:"password"` EnableTLS bool `yaml:"tls"` InsecureSkipVerify bool `yaml:"insecure_skip_verify"` }
SMTPConfig represents SMTP configuration for an email account.
Click to show internal directories.
Click to hide internal directories.