Rajesh said:
I am not using any space or enter after the end of url.
i am using the below Javascript code to open the outlook
function EmailDocument(reference,absoluteuri)
{
var to = "";
var subject = reference;
var body = absoluteuri;
var doc = "mailto:" + to +"?Subject=" + escape(subject)+"&body=" +
escape(body);
window.location = doc;
}
And what happens if you follow the recommendations of the article that Diane
referenced? Did you add the entity code for a space (%20), newline, or for
a non-legitimate URL character at the end of your URL text string contained
within the value for your 'body' variable to assist the UI in the user's
e-mail client to parse that string (and make it clickable)?
Since you are using Javascript in some web page to compile the mailto URL,
why do you care if the URL string in the body of that message is clickable?
It's not like the user will be clicking on it. After all, they are sending
YOU that message. So is the problem that your Javascript results in the
user not being able to click on a URL string that they are sending to you?
Or that you cannot click on that URL string in the e-mail that you receive?
Perhaps your 'body' string variable contains HTML codes. That is, perhaps
you are not sending a plain text message (in which a trailing space,
newline, or non-legit URL character would help parse that string) but
instead are sending an HTML-formatted e-mail. If HTML, did you use the
proper <A> tag syntax? We can't see just what you are putting in the 'body'
variable that you then append onto the mailto URL string.
Because you are composing a mailto URL string, did you make sure your 'body'
variable's value uses entity codes for characters that are not legitimate in
URL strings?