Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to open Default email client on Phonegap like using the href="tel:" method?

Tags:

cordova

I saw the plugin https://github.com/katzer/cordova-plugin-email-composer#examples but i am wondering if there any way to click a href like the call function href="tel:1234543" and it opens up the screen that allows you to select email apps on your phone? As i dont need the email to be sent in App.

Thanks

like image 689
John Avatar asked Mar 14 '15 08:03

John


People also ask

How do I open an email client in HTML?

<a href="mailto:address"> When the href attribute of the A element is set as follows, users can open the email client by clicking that link.

How do I change my default email handler?

Open Default Programs by clicking the Start button, and then clicking Default Programs. Click Set your default programs. Under Programs, click the e‑mail program you'd like to use, and then click Set this program as default. Click OK.


1 Answers

Sure, you can use mailto

<a href="mailto:[email protected]">Link text</a>

You might have to add this line to the config.xml

<access origin="mailto:*" launch-external="yes" />
like image 145
jcesarmobile Avatar answered Oct 21 '22 23:10

jcesarmobile