Legacy | Cloud email

  • Command: gateway

  • Subcommand: email

  • Supported Platforms: Native (legacy)

  • Supported OS: Android, iOS

Description

Sends an email message to the selected destination. To diversify, it is possible to select multiple destinations that may include different email addresses, devices, and users.

There is no default. At least one destination must be selected. If not specified, the message subject and body defaulted to none and test email.

To receive email message, confirm that the destination device is configured.

When specifying the destination via the to.device parameter, verify that this device has an email address.

Parameters

Name Value Default Description

to.device

   

The destination device. It is possible to select multiple devices.

to.user

   

The user for this command. It is possible to select multiple users.

The user identifier is the Perfecto username.

subject

 

test email

The message text for this command.

to.logical

user (User)

none (None)

 

The user currently running the script.

to.address

   

The email address for this command.

* Mandatory parameter

Request & Response

Copy

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
Copy

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"}