katzer / cordova-plugin-email-composer

Edit and send email messages
Apache License 2.0
344 stars 334 forks source link

Multiple Attachments not working in Android #8

Closed astutesoftware closed 10 years ago

astutesoftware commented 10 years ago

window.plugin.email.open({ to: ['john.doe@appplant.com', 'jane.doe@appplant.com'], subject: 'Hello', body: 'download files', attachments: ['file:///storage/sdcard0/xxx/filename.xls','file:///storage/sdcard0/xxx/filename.pdf'], isHtml: true });

Only the 2nd attachment gets attached in the composer. Rather when multiple attachments are there only the last one is attached in the composer.

katzer commented 10 years ago

I think its fixed now (06b79b2232b2285b5a1833cce8b56a071ecf45b5). But I have no time to test it. Does it work now?

astutesoftware commented 10 years ago

The new version started with eclipse suggesting it missed ArrayList includes. After we added the following lines it would compile import java.util.ArrayList; import java.util.List;

but now it does not do even a single attachment.

katzer commented 10 years ago

7cdeb21411354cd98b1d29959705b547e45ea8c5

katzer commented 10 years ago

Does the change help? Don't know how to test attachments with an emulator.

astutesoftware commented 10 years ago

perfect. works now. thanks