You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a modification of the EmailComposer iOS plugin made by **Randy McMillan**
2
+
In this version of the plugin, you can attach images and PDF files to emails. A little refactoring was made.
3
+
It is compliant with Cordova 2.2.0 standard (new CDVInvokedUrlCommand parameter sent to native methods). If you want to use the plugin with an older version of Cordova you must comment the method
- <callback>: a js function that will receive return parameter from the plugin
26
+
- <subject>: a string representing the subject of the email; can be null
27
+
- <body>: a string representing the email body (could be HTML code, in this case set <isHtml> to **true**); can be null
28
+
- <toRecipients>: a js array containing all the email addresses for TO field; can be null/empty
29
+
- <ccRecipients>: a js array containing all the email addresses for CC field; can be null/empty
30
+
- <bccRecipients>: a js array containing all the email addresses for BCC field; can be null/empty
31
+
- <isHtml>: a bool value indicating if the body is HTML or plain text
32
+
- <attachments>: a js array containing all full paths to the files you want to attach; can be null/empty
33
+
34
+
**Example**
35
+
window.plugins.emailComposer.showEmailComposerWithCallback(function(result){console.log(result);},"Look at this photo","Take a look at <b>this<b/>:",["example@email.com", "johndoe@email.org"],[],[],true,["_complete_path/image.jpg"]);
36
+
37
+
**Return values**
38
+
- 0: email composition cancelled (cancel button pressed and draft not saved)
39
+
- 1: email saved (cancel button pressed but draft saved)
0 commit comments