I wrote some JavaScript code a while back which would automatically detect if a visitor was logged in to GMail, and would replace all mailto links on my page with GMail compose links instead. I never put it live on my site though as the process of detecting if a user is logged in to gmail is pretty dodgy. In case you're interested in the code, or the detection process:
Interesting experiment, but I don't think webdevs should interfere with what client should be run by the user to send the email. Mailto: works just fine, and it's up to the user to set up the client for mailto.
"Email: mymailtolink (Compose with GMail/Yahoo)"
https://grepular.com/
I wrote some JavaScript code a while back which would automatically detect if a visitor was logged in to GMail, and would replace all mailto links on my page with GMail compose links instead. I never put it live on my site though as the process of detecting if a user is logged in to gmail is pretty dodgy. In case you're interested in the code, or the detection process:
https://grepular.com/Abusing_HTTP_Status_Codes_to_Expose_Pri...