Skip to content

Instantly share code, notes, and snippets.

@Amimul100
Created July 1, 2014 10:03
Show Gist options
  • Save Amimul100/0239543b47cf4770a075 to your computer and use it in GitHub Desktop.
Save Amimul100/0239543b47cf4770a075 to your computer and use it in GitHub Desktop.
e-Mail Dialog in Titanium Classic
/*
Hi, I have tested this issue in Ti SDK 3.3.0.RC. It’s working good.
Testing Environment:
Titanium SDK: 3.3.0.RC, 3.2.3.GA
Titanium CLI: 3.2.3
Android and iOS device
Appcelerator Studio, build: 3.3.0.201406271159
Step to Reproduce
Create a sample Ti Classic project from AppC Studio
Update app.js file with test code
Run on Android and iOS device
A modal window will open
*/
var emailDialog = Ti.UI.createEmailDialog();
emailDialog.subject = "Hello from Titanium";
emailDialog.toRecipients = ['[email protected]'];
emailDialog.messageBody = '<b>Appcelerator Titanium Rocks!</b>';
var f = Ti.Filesystem.getFile('cricket.wav');
emailDialog.addAttachment(f);
emailDialog.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment