The Interop External Objects for Smart Devices which can be found under the folder Smart Devices API provides several methods to interact with the device where the app is executing.
The SendEmailAdvance method enables you to open the Email native application and to fill the message fields with the values taken from the parameters. The user will have to confirm the sending of the message to actually send it. The difference between SendEmail and SendEmailAdvance is the amout of parameters needed, SendEmailAdvance lets you attach Cc and Bcc info to the email native application. For more information about SendEmail refer to HowTo: Using the SendEmail Method From Interop in Smart Devices Api.
This article will show you how to use this method in a simple Smart Device application.
Let's start by defining a Panel for Smart Devices object and the following variables:
Note: In SendEmailAdvance (as well as in SendEmail) method it doesn't matter the size of the VarChar data type parameters passed to it, even though it asks for a VarChar(200), it could receive a message of any size, for example bigger than 200.
The method SendEmailAdvanced from Interop expects the following parameter/s:
Add the variables to the layout:
Lastly add this action into de Action Bar:
And define the action as follows:
Event 'Send EMail'
Now all that's left is to press F5 and see the results: