Cloud Email (FR)

Perfecto Command

mobile:gateway:email

Purpose

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.handset parameter, verify that this device has an email address.

Parameters

Name Type Possible Values Description
subject String The message subject for this command. <default is "none">
body String The message text for this command. <default is "test email">
to.handset Handset Device ID The destination device. It is possible to select multiple devices.
to.address String The email address for this command.
to.user String

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

The user identifier is the Perfecto username.

to.logical String user | none The user currently running the script.

Return Value

None

Exceptions

None

Examples

Copy

Java sample

Map<String, Object> pars = new HashMap<>();
pars.put("to.address", "wxyzabc@yahoo.com");
String reStr = (String) driver.executeScript("mobile:gateway:email", pars)
Copy

C# sample

Dictionary<String, Object> pars = new Dictionary<String, Object>();
pars.Add("to.address", "wxyzabc@yahoo.com");
String reStr = (String) driver.ExecuteScript("mobile:gateway:email", pars);