I have a button that runs the following javascript function:
function sendEmail() { var mail = 'mailto: contact@test.com '; location.href = mail; };
In Chrome, this function runs an HTTP GET on mailto: contact@test.com , but the HTTP GET has the status "canceled" on the "Inspect Element Network" tab, and the email client does not open.
In IE, the email client also does not open.
How can I open a mail client?
source share