Programing

Mailto 링크는 Chrome에서 아무것도하지 않지만 Firefox에서는 작동합니까?

lottogame 2020. 6. 23. 07:40
반응형

Mailto 링크는 Chrome에서 아무것도하지 않지만 Firefox에서는 작동합니까?


그것은 것 같아 mailto우리는 그들이 파이어 폭스에서 작동하지만, 크롬에서 아무것도하지 못하는 우리의 웹 사이트에 삽입하고 링크를 제공합니다.

간단한 예는 다음과 같습니다. http://jsfiddle.net/wAPNH/

<a href='mailto:test@test.com'>hi this is a test</a>

Chrome에서 메일 링크를 사용하려면 특별한 작업이 필요합니까?


이는 브라우저 설정에 따라 다릅니다. 즉, 사용자의 브라우저 설정에 따라 다르게 작동합니다. 사용자는 mailto:을 방문하여 크롬에서 링크의 작동 방식을 변경 chrome://settings/handlers하거나Chrome Settings->Content Settings->Manage Handlers...

해당 페이지에 "이메일"이 없으면 진행 방법에 대한 이 답변 을 참조하십시오 .


크롬이 mailto를 다른 방식으로 처리하기 때문입니다. 가서 chrome://settings/handlers기본 핸들러인지 확인하십시오. 귀하의 경우에는 아무것도 없습니다 (즉, 나열되지 않음). 이제 gmail.com으로 이동하십시오. 북마크 버튼 옆에있는 버튼을 클릭하면 이와 같은 내용이 표시됩니다.

크롬으로 mailto 설정

Gmail을 통해 모든 이메일 링크를 열려면 "Gmail 사용"을 설정하십시오. mailto 버튼을 클릭하면 gmail에서 크롬이 자동으로 열립니다.


제 경우에는 chrome이 Windows 10의 MAILTO 프로토콜 과 연관되었습니다 .

"기본 프로그램" -> "파일 형식 또는 프로토콜을 프로그램과 연결 "을 사용하여 연결을 Outlook으로 변경했습니다 .

MAILTO는 아래 목록에 있습니다. 이 스크린 샷이 도움이 될 수 있습니다.

여기에 이미지 설명을 입력하십시오


I also experienced this issue, and eventually tracked it down to the fact that my link was within an iframe, and my web app uses https. Chrome was blocking it due to this (Chrome would open other mailto links outside of the iframe).

In mailto link not working within a frame chrome (over https), kendsnyder mentioned simply changing

<a href="mailto:...">email</a>

to

<a target="_top" href="mailto:...">email</a>

Voila, problem solved. That mailto link now works in all browsers.


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

여기에 이미지 설명을 입력하십시오


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


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"


I had the same problem. The problem, by some strange reason Chrome turned himself as the default tool to open a mailto: link. The solution, put your mail client as the default app to open it. How to : http://windows.microsoft.com/en-nz/windows/change-default-programs#1TC=windows-7

Good luck


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!


Another solution is to implement your own custom popup/form/user control that will be universally interpreted across all browsers.

Granted this will not leverage the "mailto" out of the box capabilities. It all depends on what availability adherence you are working against. Unfortunately for myself - the mailto needed to be available to everyone by default without "inconveniencing the client".

Your decision ultimately.


On macOS check also the Mail.app settings, which App is selected as default email App / associated with mailto: links:

If you ever clicked that notification on Gmail, which allows to open links in Gmail instead your App - and after this reset the Chrome handler, you have to edit this manually in your Mail.app Settings.

스크린 샷


The usual <a href="mailto:hi@hi.com"></a> should work, but remember you must have a default email program set on your computer. For ex, I'm using Ubuntu 14.04 and the default email is thunderbird, which works fine.


'Use Chrome, invite troubles' - Anonymous. (Just a symbolic reference)

Well, Chrome is notoriously famous for a lot of default security-enabled utilities, and that's where your problem originates from.

This can, however, be undone by 'setting the default email client' (as the default email client is unset), or by setting up the default handler under 'chrome://settings/handlers' (by default, it's set to 'Ignore').


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..


Please check it this:

This is working in chrome and all browser.

<a href="mailto:test.test@gmail.com">Test</a>

try and working in great.

참고 URL : https://stackoverflow.com/questions/17517600/mailto-links-do-nothing-in-chrome-but-work-in-firefox

반응형