Href = "mailto:" does not work in any of the browsers

I created a web page with some hyperlinks (this is not the Internet yet).

I have to include specific hyperlinks for the email identifiers on the page.

I tried to create links in this format:

<a href="mailto: someone@mozilla.org "> 

But they do not open using new Outlook mail, as it should be.

On Chrome, this does nothing. In Firefox, IE & Safari opens a new blank Chrome window when I click on the link.

This system is new and has all of the above browsers up to date.

+10
source share
5 answers

If you registered the default email client , this usually works if you use the <a> tag as follows:

  <a href="mailto: someone@mozilla.org ">Mail me</a> 


To change or check the settings of the mail client, do the following (quoted from MSDN ) - I changed it a bit, because it differs depending on the version of Windows used:

  1. Depending on your version of Windows, open Default Programs by clicking the Start button, and then select Default Programs. - Or: Open the control panel in the Start menu , then use the search text box in the upper right corner of the control panel screen and enter Default Programs there. Press Enter.

  2. Click . Set the default programs.

  3. In the "Programs" section, select the email program you want to use, and then click . Install this program by default.

  4. Click OK.

Note

At the first start, some mail programs display a message asking if you want to use this program by default. If you decide to do this, this program will become your default email program, even if you selected another program using the "Installing Default Programs" earlier.

+8
source

Are you sure you are closing the anchor correctly? Full HTML should be as follows:

 <a href="mailto: someone@mozilla.org ">Test</a> 
+2
source

I had the same problem, it seems at first glance a Microsoft Windows 10 problem, not email support. Like matte, go to the default programs, but change your email address to the default email. This is how I solved the problem.

+2
source

Try something like this:

 <!DOCTYPE html> <html> <body> <p> Click to email : <a href="mailto: someone@mozilla.org ?Subject=Hello" target="_top"> someone@mozilla.org </a> </p> </body> </html> 
+1
source

This is the missing permission you need to file in CHROME.

Found a solution right here: https://blog.hubspot.com/marketing/set-gmail-as-browser-default-email-client-ht

You need to go to gmail.com and click on the small double diamond that appears in the URL bar.

-1
source

Source: https://habr.com/ru/post/1237548/


All Articles