HowTo: Using SendEmailAdvanced from Interop in SDApi for Smart Devices

Official Content
This documentation is valid for:

The Interop External Object provides several methods to interact with the device where the app is running.



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 number 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 guides you on how to use this method.

The first step consists of creating a Panel object with 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 parameters:


Add the variables to the Layout:


Right-click on the Application Bar and add the "Send Email" button as shown:


and define the associated action as follows:

Event 'Send EMail'

Now all that's left is to press F5 and by scanning the QR code or using an emulator y will see the results:




  • As of GeneXus 17 upgrade 4  is available to attach files to an email in Android and iOS generators.