Skip to main content
Version: 5.7.0

SendAdvancedEmailByAddress

Sends an advanced email to the specified email address.

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_BY_ADDRESS

Method Parameters

ParameterDescription
emailAddressThe address to send the email to
serviceParamsSet of parameters dependant on the mail service configured

Usage

http://localhost:3000
string emailAddress = "test@email.com";
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.SendAdvancedEmailByAddress(emailAddress, jsonServiceParams, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {}
}