Skip to content

Commit 7e8565c

Browse files
authored
Merge pull request #112 from alexandrevez/master
Added json tag to From struct
2 parents c041325 + 2dde1b7 commit 7e8565c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ type InlineImage Attachment
5555
// From describes the nested object way of specifying the From header.
5656
// Content.From can be specified this way, or as a plain string.
5757
type From struct {
58-
Email string
59-
Name string
58+
Email string `json:"email"`
59+
Name string `json:"name"`
6060
}
6161

6262
// TmplOptions specifies settings to apply to this Template.

0 commit comments

Comments
 (0)