-
Master the mailto Syntax
Date: Aug 14, 2009 | Categories: Html | Written By: Mike Ballan
I’ve been doing a few mailto links inside emails over the last few weeks and I thought it would be a nice idea to share what i’ve been using for the mailto with all of you out there.
If like me you need to add in a space in your main body section of the mailto, all you need to do is add %20 and if you would like a line break just add %0A.
Ok so what if you want to add a single recipient of maybe a subject line in your mailto?
Well all you need to do is add the following code and you’re good to go.
Send an email to someone (single recipient) – Example
mailto:someone@somewhere.com
Send an email to someone and somebody – Example
(separate multiple recipients with a comma)
mailto:someone@somewhere.com,somebody@somewhere.com
Send an email to someone but put somebody in the CC: list and somebody in the BCC: list – Example
mailto:someone@somewhere.com?cc=somebody@somewhere.com&bcc=somebody@somewhere.com
Send an email to someone with the subject “WTFDWK” – Example
mailto:someone@somewhere.com?subject=WTFDWK
Send an email to someone with the subject “WTFDWK” and some text in the body of the email message – Example
mailto:someone@somewhere.com?subject=WTFDWK&body=This%20is%20what%20we%20know..!
And there you have it.
