Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to send an URL with arguments in a mailto: link ?

843835Jul 10 2003 — edited Jul 11 2003
Hello,

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>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 8 2003
Added on Jul 10 2003
1 comment
250 views