An Appcelerator Titanium module that creates an UIActivityViewController to choose which application will send an email with an attachment.
Include the module in your tiapp.xml:
com.vcord.share
Currently the options you have are limited to images or files, can be used like...
var module = require('com.vcord.share');
var yourFileName = 'your_file.pdf'; // You could also use an image
var yourAttachmentFile = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, yourFileName);
module.displayOptions({
title : 'Email title',
message : 'Your email body',
files : [yourAttachmentFile]
}];
- You can attach as many files you want. Just use a ',' inside the files property.
Copy the distribution zip file into the ~/Library/Application Support/Titanium
folder
Copy the distribution zip file into the ~/.titanium
folder
Copy the distribution zip file into the C:\ProgramData\Titanium
folder