Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we specify a particular email client while using href=mailto?

Tags:

html

email

Can we specify to use a particular email client while using

<a href="mailto...

In my system it opens Microsoft Outlook. But what if someone does not have Outlook on his system? On such systems clicking the mailto link does nothing.

like image 781
Ayush Avatar asked Sep 20 '25 05:09

Ayush


2 Answers

No you can't. You can specify the email address, subject and some other parameters for the mail client. But which mail client is started is something the browser decides. It would be quite a security risk if you could decide that as a web developer.

like image 97
Wolph Avatar answered Sep 22 '25 20:09

Wolph


It will open in the system's default email client. If the user does not have one selected, there's nothing you can do about it.

like image 44
idrumgood Avatar answered Sep 22 '25 20:09

idrumgood