I have a jsp page.In that, there is a button.When I press the button.I have to send a mail.the mail Message should be a URL of a JSP page. After getting the mail when the user click on the URL he should get that jsp page & the entered details should come .Can anyone tell me how to send the url as subject. I did like this.But error is coming.I am using javamail

String urlList = "<script>window.opener.parent.window.frames[1].location.href= '"+"LeaveApprovalForm.jsp'</script>";