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
I just had the same issue. Creating a function solved the problem:
<script>
function sendEmail(){
window.location = "mailto:test@test.com";
}
</script>
<a onclick="sendEmail();">hi this is a test</a>
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.
'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').
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.
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
This is browser settings specific, i.e. it will behave differently depending on the user's browser settings. The user can change how mailto:
links behave in chrome by visiting chrome://settings/handlers
, or Chrome Settings->Content Settings->Manage Handlers...
If "email" is not listed on that page, then see this answer regarding how to proceed.