Mailto links with subject and body

This is most probably not news to anybody besides myself, but regardless, I didn’t know that you can create email links including both the subject and body…

I was writing something on my other blog and needed to include some snark with a link to my email address. I found the solution on StackOverflow here.

I didn’t specify the body, but the idea is, you can just include the body and subject in the link as query strings. Really, I had no idea. For example, just with the subject:

<a href="mailto:viveirosjerome@gmail.com?subject=My Banking Details">Send me your banking details</a>

And to specify the body too:

<a href="mailto:viveirosjerome@gmail.com?subject=My Banking Details&body=I didn't know you could do this">Send me your banking details</a>

Here follows the bit of my other blog-post that used it:


Cure your ailments with magic socks

I love reading about science based medicine, and I love the Science based Medicine Blog and it’s debunking of nonscience nonsense. To think that somewhere in the civilized world, “experts” in a naturopathic university advocate the healing of all your ailments with magic socks (also known as cold wet socks taken out of the fucking freezer). The mind boggles! Read the thorough debunking by an actual medical doctor here. (My brief version: Naturopaths come up with some solid sounding sophisticated pseudoscientific nonsense… some hand-waving and the child having to maintain homoeostasis while wearing freezing socks all night kick starts the immune system. But according to the author, naturopaths’ feet fixation does not end with magic socks.)

By the way, if you believe in magic socks, I have just the thing for you. Send me your banking details (please attach permission for me to debit your account) and physical address, and I’ll send you the secret to infinite riches, along with some magic beans.

Advertisements

About Jerome

I am a senior C# developer in Johannesburg, South Africa. I am also a recovering addict, who spent nearly eight years using methamphetamine. I write on my recovery blog about my lessons learned and sometimes give advice to others who have made similar mistakes, often from my viewpoint as an atheist, and I also write some C# programming articles on my programming blog.
This entry was posted in HTML and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s