How can I pass the URL of the current page to mailto?
May 3, 2010 2:15 PM Subscribe
Can I construct a mailto link that puts the URL of the current page in the message body?
So I want to put a little bit of code at the bottom of each article I write, "If you enjoyed this article, please share it with a friend," with a mailto link.
What I would really love is to be able to construct a piece of code that I can plop down on each and every page, and it pulls the URL of the page it is currently on and drops that in the body of the email, drops some explanatory text in the subject line (that part I can handle).
Looking at the documentation for the mailto process, it doesn't look like this is possible ... is it? Or is there some better way to accomplish this easily?
I must stress that it has to be a zero-IT solution - I cannot install plugins or scripts of any sort, and need to figure out a way that strictly takes place in the editorial/post component of my sites. If I have to, I will build the links manually, but would really love it if there was some ultra-slick way to do this.
posted by jbickers to computers & internet (5 answers total) 5 users marked this as a favorite
Don't know how you'd make portable code that can grab the current URL without scripting though.
posted by anti social order at 2:30 PM on May 3, 2010