How to send an URL with arguments in a mailto: link ?
843835Jul 10 2003 — edited Jul 11 2003Hello,
I need to build simple mailto links to send urls in the body of the message.
Unfortunately there are arguments in this url : like http://host/SearchServlet?toSearch=foo";
When I click on the link the body is truncated before the ?
even when I replace ? with %3F or ? !!!
How can I pass this URL ?
Regards
PS : Below is sample javascript
<html>
<body>
<script language="javascript">
function mailpage()
{
mail_str = "mailto:?";
mail_str += "body= Link to http://host/SearchServlet?toSearch=foo";
mail_str += "&subject=Search";
location.href = mail_str;
}
</script>
<A HREF = "javascript:mailpage()">E-mail This Page</A> E-mail This Page
</body>
</html>