Setting up a Mailto Link

I have been asked how I created the mailto link.

This is really simple to do:

To write an email link just create an anchor link like you would normally, but instead of http:// write mailto: and then your email address.

If you want to send to multiple people, separate the email addresses with a comma:

mailto:email@address1.com,email@address2.com

Use a question mark after the final “To” email address to indicate you want more than just a “To” line. Then you specify what other elements you would like:

  • cc – to send a carbon copy
  • bcc – to send a blind carbon copy
  • subject – for the subject line

You treat the elements as name=value pairs.

To add multiple elements, separate the second and subsequent elements with an ampersand (&).
mailto:toaddress?cc=ccaddress&bcc=bccaddress&subject=Whatever

If I substituted steve@steve.com for toaddress; you@you.com for ccaddress; someone@someone.com for bccaddress and An Email To Steve for Whatever, the result would be a blank email, with the field entries below:

  • To: steve@steve.com
  • CC: you@you.com
  • BCC: someone@someone.com
  • Subject: An Email To Steve

Note:You might end up with a lot of SPAM, using the mailto, due to webbot scanning.

Retired, grandfather, blogger, participating in creative writing prompt blogs, and love to read.