Skip to main content
Version: 5.7.0

SendAdvancedEmail

Sends an advanced email to the specified user.

tip

The advanced API takes a set of parameters that are dependant on the mail service configured in the brainCloud Portal. For a list of all available parameters see the top of the Mail service documentation.

ServiceOperation
mailSEND_ADVANCED_EMAIL

Method Parameters

ParameterDescription
profileIdThe user to send the email to
serviceParamsSet of parameters dependant on the mail service configured

Usage

http://localhost:3000
string profileId = "f7144cc0-b996-440f-8459-21b0ecb91a10";
string jsonServiceParams = "{\"fromAddress\":\"email@company.com\",\"fromName\":\"Jane Doe\",\"replyToAddress\":\"optional@company.com\",\"replyToName\":\"Optional ReplyTo\",\"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\"}]}";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.MailService.SendAdvancedEmail(profileId, jsonServiceParams, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {}
}