scriptygoddess

07 Feb, 2003

mailto links

Posted by: Jennifer In: Lessons learned

There's a bunch of things I need to get up here, but I guess we'll just do this one piece at a time. Mailto links. Here's some basic formats to get certain fields prefilled:

with cc: field:
mailto:name@domain.com?cc=ccname@domain.com

with bcc: field:
mailto:name@domain.com?bcc=bccname@domain.com

with subject field:
mailto:name@domain.com?subject=tell%20me%20something%20nice
(side note: use %20 for spaces)

with text in the body:
mailto:name@domain.com?body=something%20nice

bring it all together:
mailto:name@domain.com?
cc=ccname@domain.com&
bcc=bccname@domain.com&
subject=tell%20me%20something%20nice&
body=something%20nice
(side note: I put these on seperate lines, but when you use this you have it make it all one line without any spaces or line returns)

So this probably goes without saying – but these "mailto" lines would go into your html like this:

<a href="mailto:name@domain.com">email me</a>

See what I mean

2 Responses to "mailto links"

1 | heather

February 7th, 2003 at 10:59 pm

Avatar

Clever girl – that's a very handy little reference 😉

2 | Aleksandr

January 30th, 2004 at 4:59 pm

Avatar

Mailto parameters:
http://www.scriptygoddess.com/archives/003336.php

i need a character that will allow me to ad returns/linebreaks just like you add spaces:
something%20nice%20%20

\n does not work, %0d does not work, \r does not work

Featured Sponsors

Genesis Framework for WordPress

Advertise Here


  • Scott: Just moved changed the site URL as WP's installed in a subfolder. Cookie clearance worked for me. Thanks!
  • Stephen Lareau: Hi great blog thanks. Just thought I would add that it helps to put target = like this:1-800-555-1212 and
  • Cord Blomquist: Jennifer, you may want to check out tp2wp.com, a new service my company just launched that converts TypePad and Movable Type export files into WordPre

About


Advertisements