Skip to content

Commit

Permalink
Error on missing context keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mp4096 committed Aug 3, 2018
1 parent d6bf99a commit 2ef5cc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions email.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ func (eb *emailBuilder) AddContent(s string) EmailBuilder {
}

func (eb *emailBuilder) Build(context map[string]string) (Email, error) {
mustache.AllowMissingVariables = false

headerTemplate := "From: " + EncodeRfc1342(eb.fromName) + " <" + eb.fromEmail + ">\r\n"
headerTemplate += "To: " + eb.toEmail + "\r\n"
headerTemplate += "Subject: {{__subject_encoded__}}\r\n"
Expand Down

0 comments on commit 2ef5cc6

Please sign in to comment.