Log in

View Full Version : mailto body javascript



mvarnham
08-02-2010, 10:00 PM
I have written a code that will place an email button on each post I create on blogger. I need the body of the email to load with the url of the page from which it originiated. I have written the button's code in blogger's template therefore no code relating to the post resides on each individual post. I need the email element to deal with a variable and generate the right url to go into the email.

Does anyone know if this is possible?

djr33
08-03-2010, 04:14 AM
Can you explain in more detail? I don't understand the situation.

I do not believe this is possible in Javascript (since JS can't send emails), but you may be able to do it with a serverside language like PHP. At least I think that's what you're asking about...

mvarnham
08-03-2010, 12:12 PM
The code in the blogger template is:

<a href='mailto:52parallelnorth+discountreview@gmail.com?subject=Discount%20Review&amp;Body=I would like for the url to be generated here...'><img src='http://farm5.static.flickr.com/4075/4853780771_bbf132e129_o.gif' width='250'/></a>

I really have very little knowledge about codes except the above basic html so have no clue as to whether it would indeed be javascript or php or other that I would need. Have you any ideas?