We help IT Professionals succeed at work.

open the default mail system on mobile using javascript

chand pb
chand pb asked
on
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
Comment
Watch Question

Most Valuable Expert 2013
Awarded 2012
Commented:
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

Author

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