mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-13 08:28:02 -05:00
Mail Composer
A Cordova plugin to launch mail client with attachment.
Compatible with Cordova >= 2.5.0
Hosted at
https://github.com/sbahal/mail-composer
Steps to install
- Install cordova-plugman.
cdinto your project directory.- Execute the following command:
plugman --platform ios --project . --plugin https://github.com/sbahal/mail-composer.git
Steps to uninstall
plugman --uninstall --platform ios --project . --plugin org.cordova.plugins.MailComposer
Usage
mailComposer.sendMail([url, fileName]);
where,
url: the URL of the file to be attached
fileName: the name of the file to be attached. The same name would be used as the subject of the mail as well.
Example
mailComposer.sendMail(['/www/docs/doc1.pdf', 'Foo Document']);