Master the mailto Syntax
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)
mailto:someone@somewhere.com
Send an email to someone and somebody
(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
mailto:someone@somewhere.com?cc=somebody@somewhere.com&bcc=somebody@somewhere.com
Send an email to someone with the subject “Infinity”
mailto:someone@somewhere.com?subject=Infinity
Send an email to someone with the subject “Infinity” and some text in the body of the email message
mailto:someone@somewhere.com?subject=Infinity&body=This%20is%20what%20we%20know..!
And there you have it.