0

I have installed Cordova email composer plugin using

 cordova plugin add https://github.com/katzer/cordova-plugin-email-composer.git

I have wrote code for sending email below code snippet

 cordova.plugins.email.open({
    subject:     'Report',
    attachments: [pdfPath]
}); 

When I call above function it only opens default email app doesn't ask for mail app options, this happens only in ios. How can resolve this issue.

arjun
  • 107
  • 1
  • 1
  • 12

1 Answers1

0

You can try this :

In .JS file :

var aAnchorMail = document.createElement("a");
aAnchorMail.href = "mailto:" + "abc@gmail.com";
aAnchorMail.target = "_top";

Or via HTML :

<a href="mailto:name@email.com">Link text</a>
Naitik
  • 1,455
  • 15
  • 26
Vishal Sharma
  • 1,733
  • 2
  • 12
  • 32