Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSubject = "Public key validation"
View Source
var DefaultTemplate = `` /* 818-byte string literal not displayed */
Functions ¶
func CheckConfig ¶
func NewMessage ¶
func NewMessage(from, to, subject, text string) *gomail.Message
Types ¶
type Config ¶
type Config struct { SMTPServer string `yaml:"smtp-server"` SMTPPort int `yaml:"smtp-port"` SMTPInsecureTLS bool `yaml:"smtp-insecure-tls"` SMTPUsername string `yaml:"smtp-username"` SMTPPassword string `yaml:"smtp-password"` Subject string `yaml:"subject"` MessageTemplate string `yaml:"message"` }
var DefaultConfig Config = Config{ SMTPServer: "localhost", SMTPPort: 25, Subject: DefaultSubject, MessageTemplate: DefaultTemplate, }
Click to show internal directories.
Click to hide internal directories.