Skip to content

Commit

Permalink
Merge pull request #45 from morus12/template-metadata
Browse files Browse the repository at this point in the history
added metadata field to templated email
  • Loading branch information
mrz1836 authored Jan 30, 2024
2 parents 0deb8f2 + 636a9cf commit ca53e0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ type TemplatedEmail struct {
Attachments []Attachment `json:",omitempty"`
// MessageStream: MessageStream will default to the outbound message stream ID (Default Transactional Stream) if no message stream ID is provided.
MessageStream string `json:",omitempty"`
// Metadata: Custom metadata key/value pairs.
Metadata map[string]interface{} `json:",omitempty"`
}

// SendTemplatedEmail sends an email using a template (TemplateID)
Expand Down

0 comments on commit ca53e0e

Please sign in to comment.