open the default mail system on mobile using javascript

Hello,
  How do you open the default mail system on Mobile.

Have an app with a mail icon. I would like the mail application to open with some information added to the body.

Capture.PNG
Thank
chand pbAsked:
Who is Participating?
 
Rainer JeschorCommented:
Hi,
you should be able to use the mailto links:
http://en.wikipedia.org/wiki/Mailto

From the iOS dev tools:
https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/MailLinks/MailLinks.html

Should also work in other mobiles.
There is also an online generator for these type of links:
http://www.mailto.co.uk/

What tool do you use to create the app? What are the targeted mobile OS versions?
HTH
Rainer
0
 
chand pbAuthor Commented:
Hello.

 Thank you for the help..

I am using ibm mobilefirst tool to create our app. Or target is  IOS 8+(iphone 4+)

Tried the script on my simulator but it did not launch the email...

Thanks  for the help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.