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
**ATTENTION:** the callback will never be triggered, it's here only for consistency with the iOS plugin
15
18
16
19
**Parameters:**
17
-
-<callback>: never used
18
-
-<subject>: a string representing the subject of the email; can be null
19
-
-<body>: a string representing the email body (could be HTML code, in this case set <isHtml> to **true**); can be null
20
-
-<toRecipients>: a js array containing all the email addresses for TO field; can be null/empty
21
-
-<ccRecipients>: a js array containing all the email addresses for CC field; can be null/empty
22
-
-<bccRecipients>: a js array containing all the email addresses for BCC field; can be null/empty
23
-
-<isHtml>: a bool value indicating if the body is HTML or plain text
24
-
-<attachments>: a js array containing all full paths to the files you want to attach; can be null/empty
20
+
- callback: never used
21
+
- subject: a string representing the subject of the email; can be null
22
+
- body: a string representing the email body (could be HTML code, in this case set **isHtml** to **true**); can be null
23
+
- toRecipients: a js array containing all the email addresses for TO field; can be null/empty
24
+
- ccRecipients: a js array containing all the email addresses for CC field; can be null/empty
25
+
- bccRecipients: a js array containing all the email addresses for BCC field; can be null/empty
26
+
- isHtml: a bool value indicating if the body is HTML or plain text
27
+
- attachments: a js array containing all full paths to the files you want to attach; can be null/empty
25
28
26
29
**Example**
30
+
27
31
window.plugins.emailComposer.showEmailComposerWithCallback(null,"Look at this photo","Take a look at <b>this<b/>:",["example@email.com", "johndoe@email.org"],[],[],true,["_complete_path/image.jpg", "_other_complete_path/file.zip"]);
Copy file name to clipboardExpand all lines: iOS/EmailComposerWithAttachments/readme.md
+18-10Lines changed: 18 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,17 @@
1
1
This is a modification of the EmailComposer iOS plugin made by **Randy McMillan**
2
2
In this version of the plugin, you can attach images and PDF files to emails. A little refactoring was made.
3
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
32
+
- callback: a js function that will receive return parameter from the plugin
33
+
- subject: a string representing the subject of the email; can be null
34
+
- body: a string representing the email body (could be HTML code, in this case set **isHtml** to **true**); can be null
35
+
- toRecipients: a js array containing all the email addresses for TO field; can be null/empty
36
+
- ccRecipients: a js array containing all the email addresses for CC field; can be null/empty
37
+
- bccRecipients: a js array containing all the email addresses for BCC field; can be null/empty
38
+
- isHtml: a bool value indicating if the body is HTML or plain text
39
+
- attachments: a js array containing all full paths to the files you want to attach; can be null/empty
33
40
34
41
**Example**
42
+
35
43
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"]);
0 commit comments