Mobile devices often support e-mail clients. We can use LiveCode to interact with the mobile device's e-mail system. This recipe illustrates the relative ease in sending an e-mail from within a mobile app developed with LiveCode.
Follow the given steps to send an e-mail:
Create a new LiveCode stack.
Set the background color of the default card to black.
Drag a new button to the card and set the following properties:
Name:
btn_sendEmail
Label:
Send Email
Width:
144
threeD: Keep it unchecked
showBorder: Keep it unchecked
hiliteBorder: Keep it unchecked
backgroundColor: White
Add the following code to the
btn_sendEmail
button:on mouseUp revMail end mouseUp
When you run the app in the simulator and click on the Submit button, you should see the e-mail client appear, as illustrated in the following screenshot: