SendEmail
≥4.5
Interface Function
Send email.
Request Parameter
Parameter | Required | Type | Remarks |
---|---|---|---|
emailTempCode | true | string | Code of email template |
mailTo | true | string | Collection of recipient email addresses |
ccTo | true | string | CC email address |
mappingData | false | Dictionary<string, string> |
Parameter substitution value of the mail template |
formAlias | false | string | The Form alias, the Form ID, can be empty, but must be filled if the C4-Documentlink parameter is used in the mail template, otherwise it will be incorrectly replaced |
dataId | false | string | This parameter can be null, but must be filled if the C4-Documentlink parameter is used in the mail template. Otherwise, this parameter is incorrectly replaced |
mailBcc | false | string | BCCMail |
attachmentFieldName | false | string | Field Name corresponding to the attached control in the Form, supported Field types: File Upload, File Upload(Advanced) |
Return Data Type
Bool Indicates whether email sending succeeds
Code Sample
var mappingData = new Dictionary<string, string>()
{
{"Name","DemoText"}
};
Service.SendEmail("1d4b8978-6115-4243-830e-5d912d0b2f41","demo@digitalmaker.com","demo1@digitalmaker.com",mappingData,formAlias,dataId,mailBcc,"DemoAttachmentFieldName");
return Return;