How to open mail client and put into predefined subject, destination and content?


#1

Hi,

How to open local mail client ( IOS / Android ) to send email and precompiled subject, content and destination? Do I need to use mailto into href?


#2

Hey,

look into this thread:

and consider my answer.

create a method in your scope, which sets $window.location.href with your mailto uri

Greets.


#3

Hi @bengtler
Do you have a working code example of this somewhere?


#4

If you want more control, you may want to look at an email Cordova plugin like: https://github.com/katzer/cordova-plugin-email-composer


#5

you need org.apache.cordova.inappbrowser plugin.