Kwissle

My real-time quiz battle game Kwissle.com

Crosstips.org

My fun Crossword solver project. Crosstips.org & Krysstips.se

Kung Fu

Fujian White Crane Kung Fu

Photos

Photoalbum, both old and new.

Twitter

Follow me on Twitter

Contact me

My contact details and how to contact me.

 

KungFuPeople.com
Do you train Kung Fu?
Or know someone who does?
Then check out KungFuPeople.com


Mobile version of this page Mobile version of this page


 
Web development

mailto: considered stupid, especially with ?subject


25th of April 2009

I don't have any stats to back this up but if I look around the office almost a lot of people use Gmail or Hotmail or something web based. My family uses Gmail, Yahoo mail and Hotmail (and me on Gmail) for example. So it bugs me when websites use the mailto: thing. Especially if they rely on the Subject line.

Here for example, on the EDF Energy Contact us page, they have a long list of "Email us" links. They're almost all going to mailto:customer_correspondence@edfenergy.com but all with a different subject line:

 mailto:customer_correspondence@edfenergy.com?subject=Dual Fuel enquiry
 mailto:customer_correspondence@edfenergy.com?subject=Dual Fuel sales enquiry
 mailto:customer_correspondence@edfenergy.com?subject=Energy efficiency enquiry
 mailto:customer_correspondence@edfenergy.com?subject=Priority Services enquiry
 mailto:customer_correspondence@edfenergy.com?subject=Electricity prepayment enquiry
 mailto:customer_correspondence@edfenergy.com?subject=Gas prepayment enquiry
 mailto:customer_correspondence@edfenergy.com?subject=Home movers enquiry
 mailto:customer_correspondence@edfenergy.com?subject=Green Tariff enquiry
 mailto:customer_correspondence@edfenergy.com?subject=Meter Reading enquiry
 mailto:customer_correspondence@edfenergy.com?subject=Bill payment enquiry
 mailto:myaccount@edfenergy.com?subject=MyAccount query
 ...

Does that mean that I have to somehow copy the Subject line from each so that my email gets routed to the right department? I just don't know. Why can't they have different email address for each thing or a web form where I can email them there and then?

Using mailto: should be done very sparingly. Considering that most people (like my mom) don't know to right-click and select "Copy email address" I prefer this way to show an email address:

 <a href="mailto:more@userfriendly.com">more@userfriendly.com</a>



Comment

Parand - 25th April 2009  [«« Reply to this]
Observing my parents' behavior, I've come to the conclusion that even the href is bad practice. Most often the default mailer is not setup (outlook lite or whatever it is on windows) so clicking on a mailto link results in a mysterious pause, followed by an unfamiliar window popping up, causing general confusion. I'm leaning towards just listing the email address without the href.
Peter Bengtsson - 26th April 2009   [«« Reply to this]
Interesting. I wish there was like a microformat so that IF you have an email client installed and in use, email addresses are turned into clickable links.
James - 10th July 2009  [«« Reply to this]
I get your point - however blatantly exposing an email address on your site invites bots that troll your site to pick up the text and start sending you viagra and holistic medical treatment messaging. What people should be doing is learning how to use an email client, event with their webmail. Try Thunderbird. It's freee.
JP - 14th July 2009  [«« Reply to this]
you can make gmail your target for mailto links in FF :)
http://www.blippitt.com/how-to-set-gmail-as-your-default-email-client-in-firefox

life changin! ;)
Joe Z - 26th May 2011  [«« Reply to this]
Ironically, this blog uses the decried mailto: hrefs.... it includes them as a link in the name of the commenter! But, it "encode[s] to prevent extraction" (simply removing the @ and changing to _AT_.) This is actually not likely to fool a spider: they know this trick. What it does do is make the href link all the more useless. Why bother with it? As the article says.

@James- Readers using an email client instead of webmail doesn't help the harvesting issue. Because keeping email addresses inside hrefs doesn't fool spiders. Spiders read the HTML, not the text, and pick up email addresses "hidden" in mailto: just fine.

@JP- That's cool, but it doesn't address the problem that most people don't, and so using a mailto: href is just likely to confuse readers.
 
Name:
Email:
hide my email address.

Your email address will be encoded to prevent email-extraction spiders from reading it so you won't get spammed if you decide to show your email address.