Page tree
Skip to end of metadata
Go to start of metadata

Last updated: Dec 17, 2019 19:12

Command: gateway

Subcommand: email

Supported Platforms: Native

Supported OS: Android, iOS

Sends an email message to the selected destination

Description

Sends an email to the specified destination - at least one must be specified.

It is possible to select multiple destinations, diversifying across email addresses, devices, and users. 

When specifying the destination by the to.device parameter, verify this device has an email address; generally, only BlackBerry devices.

If the subject and body parameters are not set, the message subject and body are defaulted to none and “test email”, respectively.

Parameters

 * Mandatory parameter

Request & Response

Request
https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-08_09_26_26_940?operation=command&securityToken=<your_token>&command=gateway&subcommand=email&param.to.address=john@perfectomobile.com&param.subject=my%20subject&param.body=my%20body
JSON Response
{
  "executionId": "john@perfectomobile.com_controller_16-11-08_09_26_26_940",
  "reason": "Success",
  "timer.elapsed": "344",
  "testGridReportUrl": "https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-08_09_26_26_940",
  "timer.ux": "0",
  "singleTestReportUrl": "https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161108/controller_16-11-08_09_26_26_940.xml&ownerId=john@perfectomobile.com&sharingCode=166ca97d-a844-443e-bb78-99da59f69f8f",
  "description": "Success",
  "timer.system": "344",
  "reportKey": "PRIVATE:controller/161108/controller_16-11-08_09_26_26_940.xml",
  "completed": "true",
  "flowEndCode": "SUCCEEDED",
  "timer.device": "0"
}