How to link mailto with default email client?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I want to know is there anyway to get any machine's default email client?

In chrome when I click on link with mailto attribute, it open's with gmail compose mail(not with machine's default email client).




But I want it to open that link with that machine's default email client.




E.g.



mailto:example@xyz.com?..... // all parameters


Is there any extra parameter I need to pass in that link?

Can anyone tell me how can I achieve this?










share|improve this question

























  • Have you tried using protocol handler?

    – guest271314
    Feb 27 '17 at 5:04






  • 2





    by default it does open through user's default email client. Maybe you've overwritten your browsers defaults to gmail.

    – IsuruKusumal
    Feb 27 '17 at 5:04











  • @guest271314 : No, I never heard about it. Can you tell me how to use it ?

    – Rahul Meshram
    Feb 27 '17 at 5:06











  • @IsuruKusumal : No, its actually showing outlook is default mail client.

    – Rahul Meshram
    Feb 27 '17 at 5:08






  • 1





    See Navigator.registerProtocolHandler()

    – guest271314
    Feb 27 '17 at 5:11


















1















I want to know is there anyway to get any machine's default email client?

In chrome when I click on link with mailto attribute, it open's with gmail compose mail(not with machine's default email client).




But I want it to open that link with that machine's default email client.




E.g.



mailto:example@xyz.com?..... // all parameters


Is there any extra parameter I need to pass in that link?

Can anyone tell me how can I achieve this?










share|improve this question

























  • Have you tried using protocol handler?

    – guest271314
    Feb 27 '17 at 5:04






  • 2





    by default it does open through user's default email client. Maybe you've overwritten your browsers defaults to gmail.

    – IsuruKusumal
    Feb 27 '17 at 5:04











  • @guest271314 : No, I never heard about it. Can you tell me how to use it ?

    – Rahul Meshram
    Feb 27 '17 at 5:06











  • @IsuruKusumal : No, its actually showing outlook is default mail client.

    – Rahul Meshram
    Feb 27 '17 at 5:08






  • 1





    See Navigator.registerProtocolHandler()

    – guest271314
    Feb 27 '17 at 5:11














1












1








1


1






I want to know is there anyway to get any machine's default email client?

In chrome when I click on link with mailto attribute, it open's with gmail compose mail(not with machine's default email client).




But I want it to open that link with that machine's default email client.




E.g.



mailto:example@xyz.com?..... // all parameters


Is there any extra parameter I need to pass in that link?

Can anyone tell me how can I achieve this?










share|improve this question
















I want to know is there anyway to get any machine's default email client?

In chrome when I click on link with mailto attribute, it open's with gmail compose mail(not with machine's default email client).




But I want it to open that link with that machine's default email client.




E.g.



mailto:example@xyz.com?..... // all parameters


Is there any extra parameter I need to pass in that link?

Can anyone tell me how can I achieve this?







javascript html mailto






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 30 '18 at 8:55







Rahul Meshram

















asked Feb 27 '17 at 4:58









Rahul MeshramRahul Meshram

7,56142042




7,56142042













  • Have you tried using protocol handler?

    – guest271314
    Feb 27 '17 at 5:04






  • 2





    by default it does open through user's default email client. Maybe you've overwritten your browsers defaults to gmail.

    – IsuruKusumal
    Feb 27 '17 at 5:04











  • @guest271314 : No, I never heard about it. Can you tell me how to use it ?

    – Rahul Meshram
    Feb 27 '17 at 5:06











  • @IsuruKusumal : No, its actually showing outlook is default mail client.

    – Rahul Meshram
    Feb 27 '17 at 5:08






  • 1





    See Navigator.registerProtocolHandler()

    – guest271314
    Feb 27 '17 at 5:11



















  • Have you tried using protocol handler?

    – guest271314
    Feb 27 '17 at 5:04






  • 2





    by default it does open through user's default email client. Maybe you've overwritten your browsers defaults to gmail.

    – IsuruKusumal
    Feb 27 '17 at 5:04











  • @guest271314 : No, I never heard about it. Can you tell me how to use it ?

    – Rahul Meshram
    Feb 27 '17 at 5:06











  • @IsuruKusumal : No, its actually showing outlook is default mail client.

    – Rahul Meshram
    Feb 27 '17 at 5:08






  • 1





    See Navigator.registerProtocolHandler()

    – guest271314
    Feb 27 '17 at 5:11

















Have you tried using protocol handler?

– guest271314
Feb 27 '17 at 5:04





Have you tried using protocol handler?

– guest271314
Feb 27 '17 at 5:04




2




2





by default it does open through user's default email client. Maybe you've overwritten your browsers defaults to gmail.

– IsuruKusumal
Feb 27 '17 at 5:04





by default it does open through user's default email client. Maybe you've overwritten your browsers defaults to gmail.

– IsuruKusumal
Feb 27 '17 at 5:04













@guest271314 : No, I never heard about it. Can you tell me how to use it ?

– Rahul Meshram
Feb 27 '17 at 5:06





@guest271314 : No, I never heard about it. Can you tell me how to use it ?

– Rahul Meshram
Feb 27 '17 at 5:06













@IsuruKusumal : No, its actually showing outlook is default mail client.

– Rahul Meshram
Feb 27 '17 at 5:08





@IsuruKusumal : No, its actually showing outlook is default mail client.

– Rahul Meshram
Feb 27 '17 at 5:08




1




1





See Navigator.registerProtocolHandler()

– guest271314
Feb 27 '17 at 5:11





See Navigator.registerProtocolHandler()

– guest271314
Feb 27 '17 at 5:11












1 Answer
1






active

oldest

votes


















2














It depends on the browser settings. You can't change it using JavaScript.



Have a look at http://www.makeuseof.com/tag/how-to-change-the-default-email-program-for-mailto-links/






share|improve this answer
























  • Your suggestion won't help me because I know this, I can't tell user to go through all these things when they click on link and wants to open in their machine's default mail client. That I need to do something, so that mailto link will open in user's default mail client

    – Rahul Meshram
    Feb 27 '17 at 5:10






  • 1





    You cannot force a user to open a certain program, the browser handles passing the mailto link to the correct mail client that the user has set.

    – Alexis Tyler
    Feb 27 '17 at 5:12











  • @AlexisTyler : I am not saying it must be possible, I am asking the question, I know its not possible so asked question expecting the alternative regarding same.

    – Rahul Meshram
    Feb 27 '17 at 5:14














Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f42478093%2fhow-to-link-mailto-with-default-email-client%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














It depends on the browser settings. You can't change it using JavaScript.



Have a look at http://www.makeuseof.com/tag/how-to-change-the-default-email-program-for-mailto-links/






share|improve this answer
























  • Your suggestion won't help me because I know this, I can't tell user to go through all these things when they click on link and wants to open in their machine's default mail client. That I need to do something, so that mailto link will open in user's default mail client

    – Rahul Meshram
    Feb 27 '17 at 5:10






  • 1





    You cannot force a user to open a certain program, the browser handles passing the mailto link to the correct mail client that the user has set.

    – Alexis Tyler
    Feb 27 '17 at 5:12











  • @AlexisTyler : I am not saying it must be possible, I am asking the question, I know its not possible so asked question expecting the alternative regarding same.

    – Rahul Meshram
    Feb 27 '17 at 5:14


















2














It depends on the browser settings. You can't change it using JavaScript.



Have a look at http://www.makeuseof.com/tag/how-to-change-the-default-email-program-for-mailto-links/






share|improve this answer
























  • Your suggestion won't help me because I know this, I can't tell user to go through all these things when they click on link and wants to open in their machine's default mail client. That I need to do something, so that mailto link will open in user's default mail client

    – Rahul Meshram
    Feb 27 '17 at 5:10






  • 1





    You cannot force a user to open a certain program, the browser handles passing the mailto link to the correct mail client that the user has set.

    – Alexis Tyler
    Feb 27 '17 at 5:12











  • @AlexisTyler : I am not saying it must be possible, I am asking the question, I know its not possible so asked question expecting the alternative regarding same.

    – Rahul Meshram
    Feb 27 '17 at 5:14
















2












2








2







It depends on the browser settings. You can't change it using JavaScript.



Have a look at http://www.makeuseof.com/tag/how-to-change-the-default-email-program-for-mailto-links/






share|improve this answer













It depends on the browser settings. You can't change it using JavaScript.



Have a look at http://www.makeuseof.com/tag/how-to-change-the-default-email-program-for-mailto-links/







share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 27 '17 at 5:04









AmirAmir

162211




162211













  • Your suggestion won't help me because I know this, I can't tell user to go through all these things when they click on link and wants to open in their machine's default mail client. That I need to do something, so that mailto link will open in user's default mail client

    – Rahul Meshram
    Feb 27 '17 at 5:10






  • 1





    You cannot force a user to open a certain program, the browser handles passing the mailto link to the correct mail client that the user has set.

    – Alexis Tyler
    Feb 27 '17 at 5:12











  • @AlexisTyler : I am not saying it must be possible, I am asking the question, I know its not possible so asked question expecting the alternative regarding same.

    – Rahul Meshram
    Feb 27 '17 at 5:14





















  • Your suggestion won't help me because I know this, I can't tell user to go through all these things when they click on link and wants to open in their machine's default mail client. That I need to do something, so that mailto link will open in user's default mail client

    – Rahul Meshram
    Feb 27 '17 at 5:10






  • 1





    You cannot force a user to open a certain program, the browser handles passing the mailto link to the correct mail client that the user has set.

    – Alexis Tyler
    Feb 27 '17 at 5:12











  • @AlexisTyler : I am not saying it must be possible, I am asking the question, I know its not possible so asked question expecting the alternative regarding same.

    – Rahul Meshram
    Feb 27 '17 at 5:14



















Your suggestion won't help me because I know this, I can't tell user to go through all these things when they click on link and wants to open in their machine's default mail client. That I need to do something, so that mailto link will open in user's default mail client

– Rahul Meshram
Feb 27 '17 at 5:10





Your suggestion won't help me because I know this, I can't tell user to go through all these things when they click on link and wants to open in their machine's default mail client. That I need to do something, so that mailto link will open in user's default mail client

– Rahul Meshram
Feb 27 '17 at 5:10




1




1





You cannot force a user to open a certain program, the browser handles passing the mailto link to the correct mail client that the user has set.

– Alexis Tyler
Feb 27 '17 at 5:12





You cannot force a user to open a certain program, the browser handles passing the mailto link to the correct mail client that the user has set.

– Alexis Tyler
Feb 27 '17 at 5:12













@AlexisTyler : I am not saying it must be possible, I am asking the question, I know its not possible so asked question expecting the alternative regarding same.

– Rahul Meshram
Feb 27 '17 at 5:14







@AlexisTyler : I am not saying it must be possible, I am asking the question, I know its not possible so asked question expecting the alternative regarding same.

– Rahul Meshram
Feb 27 '17 at 5:14






















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f42478093%2fhow-to-link-mailto-with-default-email-client%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

The Sandy Post

Danny Elfman

Pages that link to "Head v. Amoskeag Manufacturing Co."