Methods
(static) email(params) → {Promise}
- Description:
Send Email
Example
var params = {
to: "receiver@sender.com",
subject: "Message title",
text: "Plaintext version of the message",
html: "<p>HTML version of the message</p>"
};
await cxSend.email(params);
Parameters:
Name | Type | Description |
---|---|---|
params |
object | Parameters for Emailing |
Returns:
- Type
- Promise
(static) sms(params, msg) → {Promise}
- Description:
Send SMS
Example
await cxSend.sms('447000123456', 'Hello World!');
Parameters:
Name | Type | Description |
---|---|---|
params |
string | Telephone Number |
msg |
string | SMS Message (160 Chars) |
Returns:
- Type
- Promise