Mailto links do nothing in Chrome but work in Firefox?

后端 未结 17 605
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 08:13

It seems like the mailto links we\'re embedding in our website fail to do anything in Chrome, though they work in Firefox.

Simple example here: http://j

相关标签:
17条回答
  • 2020-12-02 08:41

    Fix that worked for me since my Protocol handlers was empty

    https://productforums.google.com/forum/#!topic/gmail/CQMCGRvyhCM

    See redfish43 reply , to sum up

    For mailto: - Make sure you are logged in to Gmail and the active window is your main Gmail page (or nothing will happen). - Copy/paste this into the address bar:

    javascript:navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","Gmail")
    

    Add the javascript: to the front again if needed, because when you pasted it, Chrome probably trimmed everything before and including the colon. Then hit enter.

    When popup window opens click on "Allow"

    0 讨论(0)
  • 2020-12-02 08:42

    You can try going to chrome://settings/handlers and set value for mailto: to none instead of gmail

    0 讨论(0)
  • 2020-12-02 08:44

    I found this answer on a Google forum that has worked me. In the footnotes it mentions 'googleapps.exe' - I don't have this and it has still worked. Simply follow the instructions below but close down all applications before making changes to the Registry. Also I saved the existing value just in case it didn't work.


    Simply type "run" in your search bar, then type "regedit" then travel to:

    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mailto\shell\open\command\ 
    

    edit (double click) "(Default)" to:

    "C:\Program Files (x86)\Google\Google Apps\googleapps.exe" --domain= --mailto.google.com="%1" 
    

    That's it! Save and close it and it should work beautifully!

    Using this method prevents you from having to download the GMail Notifier, which for those of us with GTalk don't need since it does it for us. I'm not sure why Google can't solve this issue easily.. i've heard Google Apps haven't been tested fully on Windows 7 but it's obvious the same tag works with it.

    Note: The only thing with this solution is you need to have the googleapps.exe file on your machine. I believe I got it with my free GooglePack from their site which has now been discontinued. I tried searching the net for a way to download it but weirdly enough it seems it's reserved only for Businesses now and there is no download link available from the web because everyone who has it streamed it using the google updater.. Odd. Anyway good luck!

    0 讨论(0)
  • 2020-12-02 08:45

    In my case, chrome was associated as MAILTO protocol in Windows 10.

    I changed the association to Outlook using "Default Programs" -> "Associate a file type or protocol with a program".

    MAILTO is way below in the list. This screenshot may help.

    0 讨论(0)
  • 2020-12-02 08:46

    You need to allow gmail to install the service handler for mailto protocol:

    1) go to gmail

    2) click the small rhombus icon at the end of address bar (screenshot)

    3) enjoy

    0 讨论(0)
  • 2020-12-02 08:46

    You can use like this also,

    <a href="javascript:void(0);" onclick="javascript:window.location.href='mailto:info@example.com'; return false;">info@example.com</a>
    

    I think this is best way to resolved for chrome issues.

    Thanks..

    0 讨论(0)
提交回复
热议问题