Skip to content

Commit

Permalink
Merge pull request #112 from alexandrevez/master
Browse files Browse the repository at this point in the history
Added json tag to From struct
  • Loading branch information
yargevad authored Jun 13, 2017
2 parents c041325 + 2dde1b7 commit 7e8565c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ type InlineImage Attachment
// From describes the nested object way of specifying the From header.
// Content.From can be specified this way, or as a plain string.
type From struct {
Email string
Name string
Email string `json:"email"`
Name string `json:"name"`
}

// TmplOptions specifies settings to apply to this Template.
Expand Down

0 comments on commit 7e8565c

Please sign in to comment.