O'Reilly logo

LiveCode Mobile Development Cookbook by Dr. Edward Lavieri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Formatting an e-mail

It can be helpful to users if you prepopulate e-mails before presenting the user with the mobile operating system's e-mail dialog interface. You might, for example, want to create an e-mail message highlighting an in-game achievement of your users. This recipe will show you how to format an e-mail using the To address, CC address, e-mail subject, and e-mail body.

How to do it...

By performing the following steps, you can have your mobile app prepopulate some e-mail properties so that it is preformatted or prefilled for your user:

  1. Create a new LiveCode stack.
  2. Set the background color of the default card to black.
  3. Drag a new label to the card and set the following properties:
    • Name: lbl_toAddress
    • foregroundColor: White
    • textSize: 14

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required