Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

How to launch native email with an image

$
0
0

OK, so I suppose this is perhaps the best option. I tried this plugin

https://github.com/katzer/cordova-plugin-email-composer/blob/cab303d/README.md

And the code is very straightfoward:

 var img_data = $scope.canvas.toDataURL("image/png");
 var options = { attachments: [ $scope.canvas.toDataURL("image/png") ], 
          subject: 'Enjoy!', body: 'See', isHtml: true};
 $cordovaEmailComposer.open(options);

Which asks which email app to use. But it does not attach the picture to email, says "Couldn't attach file." in gmail, and just nothing in outlook.

What am I missing? Thanks.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>