Search code examples
androidphonegap-pluginsemail-attachmentscordova-plugins

katzer/cordova-plugin-email-composer make crashing the Gmail app


enter image description hereI used this plugin in my Android phonegap application. When I tried to add the attachment and sending the mail, each time it is crashing the Gmail app and showing " Unfortunately Gmail has stopped" . I checked that file has data also. But didn't find the solution. Can any one help me please.. Thanks in advance my sample code is {window.plugin.email.open({ to: ['[email protected]'], subject: 'Testing the Mail Functionality with Attachment', body: "Hi", isHtml: true, attachments: ["JB/ReadingData.txt"] });}

I updated the screenshot, which I ma getting the error message in the ADT. I ma not able to send an email with out attachment also.


Solution

  • If i am not worng its because your attachment file it is crashing please check path of .txt file or either leave attachment field as blank and check. Reffer read me file with katzer email plugin implementation example. If possible will post code for the same.