Typo fix
This commit is contained in:
parent
e7039d7bd1
commit
daf62f0593
2 changed files with 3 additions and 2 deletions
|
@ -19,6 +19,7 @@ var (
|
||||||
ALLOWED_SECURITY_TYPES = []string{"none", "tls", "starttls"}
|
ALLOWED_SECURITY_TYPES = []string{"none", "tls", "starttls"}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Config
|
||||||
type Config struct {
|
type Config struct {
|
||||||
EmailFrom string `mapstructure:"email-from"`
|
EmailFrom string `mapstructure:"email-from"`
|
||||||
EmailTo []string `mapstructure:"email-to"`
|
EmailTo []string `mapstructure:"email-to"`
|
||||||
|
|
|
@ -42,7 +42,7 @@ func main() {
|
||||||
fmt.Printf("d: exporting content of %s\n", trelloBoard.Name)
|
fmt.Printf("d: exporting content of %s\n", trelloBoard.Name)
|
||||||
|
|
||||||
trelloMarkdown := trelloBoard.ExportToMarkdown()
|
trelloMarkdown := trelloBoard.ExportToMarkdown()
|
||||||
trelloHtml := trelloBoard.ExportToHtml()
|
trelloHTML := trelloBoard.ExportToHtml()
|
||||||
config.EmailSubject = fmt.Sprintf("Daily mail for %s", trelloBoard.Name)
|
config.EmailSubject = fmt.Sprintf("Daily mail for %s", trelloBoard.Name)
|
||||||
|
|
||||||
// Create email enveloppe
|
// Create email enveloppe
|
||||||
|
@ -54,7 +54,7 @@ func main() {
|
||||||
email.SetHeader("From", config.EmailFrom)
|
email.SetHeader("From", config.EmailFrom)
|
||||||
email.SetHeader("Subject", config.EmailSubject)
|
email.SetHeader("Subject", config.EmailSubject)
|
||||||
email.SetBody("text/plain", trelloMarkdown)
|
email.SetBody("text/plain", trelloMarkdown)
|
||||||
email.AddAlternative("text/html", trelloHtml)
|
email.AddAlternative("text/html", trelloHTML)
|
||||||
|
|
||||||
// Connect and send email
|
// Connect and send email
|
||||||
var transport *mail.Dialer
|
var transport *mail.Dialer
|
||||||
|
|
Loading…
Reference in a new issue