my.sendEmail
Open the url in the default browser of the Device or open other app in the device.
Sample Code
copy
my.sendEmail({
to: '123456789@163.com',
completion: res => {
const { code, message } = res;
if (code === '0') {
console.log(message);
}
},
}
);
Parameters
Property | Type | Required | Description |
to | String | No | The person you want to send email to. |
completion | Function | No | Callback function upon call success. |
Completion Callback Function
The incoming parameter is of the Object type with the following attributes:
Property | Type | Description |
code | String | result code. |
message | String | result message. |
Result Code
The result code list
code | Description |
0 | Successfully open the web browser or apps. |
-1000 | Invaild Request Data. |