SendBasicEmail
Sends a simple text email to the given user.
Service | Operation |
---|---|
SEND_BASIC_EMAIL |
Method Parameters
Parameter | Description |
---|---|
profileId | The user to send the email to. |
subject | Subject of the email. |
body | Body of the email. |
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 subject = "Basic email subject";
var body = "This is the body of the email";
var mailProxy = bridge.getMailServiceProxy();
var postResult = mailProxy.sendBasicEmail(profileId, subject, body);
if (postResult.status == 200) {
// Success!
}
{
"service": "mail",
"operation": "SEND_BASIC_EMAIL",
"data": {
"profileId": "f7144cc0-b996-440f-8459-21b0ecb91a10",
"subject": "Basic email subject",
"body": "This is the body of the email"
}
}