BatchEmailSend
接口功能
批量发送邮件
请求参数
参数 | 类型 | 说明 |
---|---|---|
EntityCode | string | 邮件模板中参数所属的 From, Form别名, Form的标识 |
EmailTempCode | string | 邮件模板Code, template code是一个guid的string, 从Email template界面可以取到 |
MailToList | List<string> |
接收人邮箱号集合 |
MailCC | string | 抄送人邮箱号 |
DataId | string | 邮件模板中参数所属的 Document |
MappingData | Dictionary<string, string> |
邮件模板中参数的替换值 |
AttachmentFieldName | string | 附件在Form中对应的控件Field name, 支持的Field类型: File Upload, File Upload(Advanced) |
返回数据类型(Data部分)
Dictionary<string, int>
注: key是每个邮箱账号 value是发送是否成功,1代表成功, 当模板code不对时会返回-1
输入示例
{
"EntityCode": "DemoFormAlias",
"EmailTempCode": "3c2c10af-d2df-49e5-be7a-c085821c9f78",
"MailToList": [
"demo1@digitalmaker.com",
"demo2@digitalmaker.com"
],
"MailCC": "",
"MailBCC": "",
"DataId": "4ab4be9d624c48f6b1ade86bfe0a655e",
"MappingData": {},
"AttachmentFieldName": "DemoAttachmentFieldName"
}
返回示例
{
"StatusCode": 200,
"Info": "Request (or process) succeeded",
"Data": {
"demo1@digitalmaker.com": 1,
"demo2@digitalmaker.com": 1
}
}