Tuesday, August 20, 2013

Code to send "Current page URL" in e-mail body




 <html>
<head>
<META name="WebPartPageExpansion" content="full">
<script language="javascript">
function mailpage()
{
mail_str = "mailto:?subject=Check out this article on " + document.title;
mail_str += "&body=I thought you might be interested in this article on " + document.title;
mail_str += ". You can view it at, " + location.href;
location.href = mail_str;
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div style="padding-top:5px" align="center">
<input type="button" onclick="javascript:mailpage();" value="Email This Article" class="style5" style="color: #990000; font-weight: bold; font-family: 'CA Sans';"/></div>
</body>
</html>