: Make mailto links work with my users webmail such as Gmail and Yahoo I'm running into the same problem as the person who asked Are mailto: links practically deprecated? During user testing
I'm running into the same problem as the person who asked Are mailto: links practically deprecated? During user testing we are finding that when we ask users to click a mailto link to send an email, a large percentage of users don't have their browser configured correctly to open their preferred webmail provider.
What can I do about it on my website? For example, is it practical to:
Provide instruction to users to configure their browsers such as installing plugins
Show direct links to compose a mail directly in each webmail provider ("Click here for gmail".)
Detect that clicking mailto didn't open anything and provide a fallback behavior
More posts by @Megan663
2 Comments
Sorted by latest first Latest Oldest Best
Here are stats about webmail usage of the top web mail providers:
Gmail: 16%
Outlook.com 5%
Yahoo! Mail 3%
Given that these are the top 3, it makes sense to create links specifically for them. All of them have URLs that will open a compose email message in their system.
Gmail: mail.google.com/mail/?view=cm&fs=1&to=TO@EXAMPLE.COM&su=SUBJECT&body=BODY Outlook.com: outlook.live.com/owa/#subject=SUBJECT&body=BODY&to=TO@EXAMPLE.COM&path=%2fmail%2faction%2fcompose Yahoo: compose.mail.yahoo.com/?to=TO@EXAMPLE.COM&subj=SUBJECT&body=BODY
Along with the classic mailto: link:
mailto:TO@EXAMPLE.COM?subject=SUBJECT&body=BODY
PlanetScale Networks suggests in his answer that craigslist does something similar. They include AOL (presumably because it has been bigger historically). They also call the Outlook option "Hotmail, Outlook, Live mail", presumably because it has had other names over the year to which users still refer to it.
For completeness, here is the AOL link for compose: mail.aol.com/mail/compose-message.aspx?to=TO@EXAMPLE.COM&subject=SUBJECT&body=BODY
When you use these URLs, parameters must be URL encoded (percent encoding) so THE SUBJECT would need to be THE%20SUBJECT to be put into one of the links.
Sources: Hotmail/Live.com mailto: URL no longer working. Is there a new format?, What is the format of compose links to web mail clients such as Gmail, Yahoo Mail, Hotmail and AOL?
Unfortunaly there is no way to do this within the confines of the mailto: link. That link is designed to open the default email client installed on the computer and open a compose new email window and populate the to address with the address from the link. Many sites (such as Craigslist) have added to the send email dropdown links to do this with webmail clients like hotmail and gmail but there is no easy way to do it with a single link as that would involve a level of access to the computer which would be a significant security issue with allowing access to the installed software list and browser list. You can suggest that the client install plugins to their browser to divert the mailto link to webmail if you want but they may or may not do it. I find the easiest way to do it is to simply use the mailto link and the client would know themselves from past experiences if they can click the link to make it work or if they need to open their webmail client to send the email.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.