support email content-type
This commit is contained in:
parent
a44f93a14c
commit
ceb5d39b0d
|
@ -20,4 +20,5 @@ type Email struct {
|
|||
} `json:"recipients" elastic_mapping:"recipients:{type:object}"`
|
||||
Subject string `json:"subject" elastic_mapping:"subject:{type:text}"`
|
||||
Body string `json:"body" elastic_mapping:"body:{type:text}"`
|
||||
ContentType string `json:"content_type" elastic_mapping:"content_type:{type:keyword}"`
|
||||
}
|
|
@ -27,6 +27,7 @@ func (act *EmailAction) Execute()([]byte, error){
|
|||
"variables": util.MapStr{
|
||||
"subject": act.Subject,
|
||||
"body": act.Body,
|
||||
"content_type": act.Data.ContentType,
|
||||
},
|
||||
}
|
||||
emailMsgBytes := util.MustToJSONBytes(emailMsg)
|
||||
|
|
Loading…
Reference in New Issue