No description, website, or topics provided.
Objective-C Java JavaScript
Latest commit 2da0288 Feb 10, 2016 @jcjee Merge pull request #11 from muster/patch-1
Update EmailComposer.m
Permalink
Failed to load latest commit information.
src Update EmailComposer.m Feb 11, 2016
www Initial Commit Aug 29, 2013
README.md spaced Apr 9, 2014
plugin.xml Fixed plugin to have the package name in the android authorities. Mar 25, 2015

README.md

Email Composer with Attachments Plugin

Email Composer with Attachments allows for sending of emails with attachments. Modified from the original Phonegap plugin to accept attachment data directly from JavaScript, encoded in Base64.

The original source + commit history is no longer maintained. You can find it here:

https://github.com/phonegap/phonegap-plugins/tree/DEPRECATED/iPhone/EmailComposer

and here :

https://github.com/phonegap/phonegap-plugins/tree/DEPRECATED/iOS/EmailComposer

and here :

https://github.com/phonegap/phonegap-plugins/tree/DEPRECATED/iOS/EmailComposerWithAttachments

Callable interface:

	window.plugins.emailComposer.showEmailComposerWithCallback(callback,subject,body,toRecipients,ccRecipients,bccRecipients,isHtml,attachments,attachmentsData);

Parameters:

  • callback: a js function that will receive return parameter from the plugin
  • subject: a string representing the subject of the email; can be null
  • body: a string representing the email body (could be HTML code, in this case set isHtml to true); can be null
  • toRecipients: a js array containing all the email addresses for TO field; can be null/empty
  • ccRecipients: a js array containing all the email addresses for CC field; can be null/empty
  • bccRecipients: a js array containing all the email addresses for BCC field; can be null/empty
  • isHtml: a bool value indicating if the body is HTML or plain text
  • attachments: a js array containing all full paths to the files you want to attach; can be null/empty
  • attachmentsData: a js array of fileName-fileData array pairs, e.g. [['filename1','base64data1'],['filename2','base64data2']]

Special thanks

I would like to say thanks to Guido Sabatini (https://github.com/phonegap/phonegap-plugins/blob/master/iOS/EmailComposerWithAttachments/) for the code we have (re)used and added extra functionalities to.

License

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.