BatchEmailSend
Interface Function
Send mass emails
Request Parameter
Parameter | Type | Remarks |
---|---|---|
EntityCode | string | Form that the parameter in the mail template belongs to, Form alias, the identity of the form |
EmailTempCode | string | Email template code, template code is a guid string, which can be obtained from the Email template interface |
MailToList | List<string> |
Collection of recipient emails |
MailCC | string | CC email address |
MailBCC | string | BCC email address |
DataId | string | Document that the parameter in the mail template belongs to |
MappingData | Dictionary<string, string> |
The replacement value of the parameter in the mail template |
AttachmentFieldName | string | The corresponding control Field name of the attachment in the Form, supported field types: File Upload, File Upload(Advanced) |
Return Data Type
Dictionary<string, int>
Note:
key is the email account.
value represents whether the email is sent successfully. 1 is for success. It will return -1 when the template code is wrong
Input Sample
{
"EntityCode": "DemoFormAlias",
"EmailTempCode": "3c2c10af-d2df-49e5-be7a-c085821c9f78",
"MailToList": [
"demo1digitalmaker.com",
"demo2@digitalmaker.com"
],
"MailCC": "",
"MailBCC": "",
"DataId": "4ab4be9d624c48f6b1ade86bfe0a655e",
"MappingData": {},
"AttachmentFieldName": "DemoAttachmentFieldName"
}
Return Sample
{
"StatusCode": 200,
"Info": "Request (or process) succeeded",
"Data": {
"demo1@digitalmaker.com": 1,
"demo2@digitalmaker.com": 1
}
}