SendAdvancedEmail
Sends a advanced email to the given user. See the documentation for contents of 'serviceParams'.
Service | Operation |
---|---|
SEND_ADVANCED_EMAIL |
Method Parameters
Parameter | Description |
---|---|
profileId | The user to send the email to. |
serviceParams | Set of parameters dependant on the mail service configured. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var profileId = "f7144cc0-b996-440f-8459-21b0ecb91a10";
var serviceParams = {
"fromAddress": "fromAddress",
"fromName": "fromName",
"replyToAddress": "replyToAddress",
"replyToName": "replyToName",
"templateId": "8f14c77d-61f4-4966-ab6d-0bee8b13d090",
"subject": "subject",
"body": "Body goes here",
"useHtml": false,
"substitutions": {
":name": "John Doe",
":resetLink": "www.dummuyLink.io"
},
"categories": [
"category1",
"category2"
]
};
var mailProxy = bridge.getMailServiceProxy();
var postResult = mailProxy.sendAdvancedEmail(profileId, serviceParams);
if (postResult.status == 200) {
// Success!
}
{
"service": "mail",
"operation": "SEND_ADVANCED_EMAIL",
"data": {
"profileId": "f7144cc0-b996-440f-8459-21b0ecb91a10",
"serviceParams": {
"fromAddress": "fromAddress",
"fromName": "fromName",
"replyToAddress": "replyToAddress",
"replyToName": "replyToName",
"templateId": "8f14c77d-61f4-4966-ab6d-0bee8b13d090",
"subject": "subject",
"body": "Body goes here",
"useHtml": false,
"substitutions": {
":name": "John Doe",
":resetLink": "www.dummuyLink.io"
},
"categories": [
"category1",
"category2"
]
}
}
}