Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
Corrects attachmentLocation to take array
Browse files Browse the repository at this point in the history
attachmentLocation must be an Array object
  • Loading branch information
timwindsor committed Nov 6, 2015
1 parent 55b8d5e commit aec894e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BB10-Cordova/EmailSender/plugin/Readme.md
Expand Up @@ -51,7 +51,7 @@ var emailJSON = {
"signature": "true", // will add vCard from the 'signatureLocation'
"signatureLocation": "file:///accounts/1000/shared/documents/file.txt",
"attachment": "true", // will add vCard from the 'attachmentLocation'
"attachmentLocation": "file:///accounts/1000/shared/documents/file.ext" //will also accept file path as "/accounts/1000/shared/...",
"attachmentLocation": ["file:///accounts/1000/shared/documents/file.ext"] //will also accept file path as "/accounts/1000/shared/...",
"/accounts/1000/removable/sdcard/...", or "./app/native/..."
};
var status = community.emailsenderplugin.sendEmail(emailJSON);
Expand All @@ -75,7 +75,7 @@ var emailJSON = {
"signature": "false",
"signatureLocation": "",
"attachment": "true",
"attachmentLocation": "/accounts/1000/shared/documents/file.ext"
"attachmentLocation": ["/accounts/1000/shared/documents/file.ext"]
};
var status = community.emailsenderplugin.sendEmail(emailJSON);
```
Expand All @@ -96,7 +96,7 @@ var emailJSON = {
"signature": "false",
"signatureLocation": "",
"attachment": "true",
"attachmentLocation": "/accounts/1000/removable/sdcard/My Files/file.dat"
"attachmentLocation": ["/accounts/1000/removable/sdcard/My Files/file.dat"]
};
```
**Here's the usage for the getEmailAccounts() method:**
Expand Down Expand Up @@ -134,4 +134,4 @@ As of 09-Oct-2014, the plugin can't send email from a Microsoft account(hotmail,

## Disclaimer

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.
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.

0 comments on commit aec894e

Please sign in to comment.