Skip to main content
Version: 5.7.0

Mail

The Mail service allows you to send emails though brainCloud using the mail service provider you have configured on the Manage Integrations page of the brainCloud portal.

Advanced Parameters

Using the SendAdvancedEmail method you can specify service-specific parameters to use when sending an email. Things like tags, categories, templates, and substitutions. The available parameters will depend on the mail service provider you have enabled.

SendGrid

Example of dynamic templated SendGrid email parameters:

{
"fromAddress": "email@company.com",
"fromName": "Jane Doe",
"replyToAddress": "optional@company.com",
"replyToName": "Optional ReplyTo",
"cc": ["xxx@company.com"],
"bcc": ["yyy@company.com"],
"templateId": "d-www-xxx-yyy-zzz",
"dynamicData": {
"user": {
"firstName": "John",
"lastName": "Doe"
},
"resetLink": "www.dummuyLink.io"
},
"categories": ["category1", "category2"],
"attachments": [
{
"content": "VGhpcyBhdHRhY2htZW50IHRleHQ=",
"filename": "attachment.txt"
}
]
}

Mail template formats sent into SendGrid.

Information on setting up SendGrid can be found here.

General Template Parameters

ParameterDescription
fromAddressAn alternate from address.
fromNameAn alternate from name.
replyToAddressAn alternate reply-to address.
replyToNameAn alternate reply-to name.
ccArray of email addresses to cc.
bccArray of email addresses to bcc.
templateIdThe templateId of the SendGrid template to use for this message.
categoriesAdditional category tags for this email.
attachmentsFile attachments.

Dyanmic Template Parameters

ParameterDescription
dynamicDataDynamic email data.

HTML/plain-text Template Parameters

ParameterDescription
useHtmlShould display email contents in html.
subjectThe email subject
bodyThe email body

Legacy Template Parameters

ParameterDescription
substitutionsSubstitutions to use in the specified template. Only valid if template is used.

API Summary

Send Mail