HowTo: Using SendEmailAdvanced from Interop in SDApi for Smart Devices

Official Content
This documentation is valid for:

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.

InteropEO

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.

SendEMailAdvanceVariables

The method SendEmailAdvanced from Interop expects the following parameter/s:

SendEmailAdvanceInteropVariables

Add the variables to the layout:

SendEmailAdvanceLayout

Lastly add this action into de Action Bar:

SendEmailAdvanceActionDefinition1

And define the action as follows:

Event 'Send EMail'
    Interop.SendEmailAdvanced(&to,&Cc,&Bcc,&Subject,&Message)
EndEvent

SendEmailAdvanceActionDefinition2

 Now all that's left is to press F5 and see the results:

BlackBerry

SendEmailAdvanceBBExample1

SendEmailAdvanceBBExample2

SendEmailAdvanceBBExample3

SendEmailAdvanceBBExample4

iOS

SendEmailAdvanceiOSExample1

SendEmailAdvanceiOSExample2

SendEmailAdvanceiOSExample3




Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.