Skip to content

A Cordova plugin to launch mail client with attachment.

Notifications You must be signed in to change notification settings

jdTPF/mail-composer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mail Composer

A Cordova plugin to launch mail client with attachment.
Compatible with Cordova >= 2.5.0

Steps to install

  1. Install cordova-plugman.
  2. cd into your project directory.
  3. 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.composeMail([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.composeMail(['/www/docs/doc1.pdf', 'Foo Document']);

About

A Cordova plugin to launch mail client with attachment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published