Hyperlink Issue - When Outlook is not Open

R

Rajesh

Steps to Re-Produce

1. Close Outlook if it is opened
2. Open an Outlook from a mail to link
<a href="mailto:[email protected]?subject=Hello%20again">
Send Mail</a>
3. Add a message body contains the link (www.microsoft.com).Click on the link
4. Its not opening the page until the Outlook mail window is closed.
 
V

VanguardLH

Rajesh said:
Steps to Re-Produce

1. Close Outlook if it is opened
2. Open an Outlook from a mail to link
<a href="mailto:[email protected]?subject=Hello%20again">
Send Mail</a>
3. Add a message body contains the link (www.microsoft.com).Click on the link
4. Its not opening the page until the Outlook mail window is closed.

What if you specify a valid URL which includes its scheme, as in:

http://www.microsoft.com/

You never mentioned HOW the URL string got into the body of the e-mail. I
did a test as above and it worked; however, my default send format is plain
text and I just enter a URL as the tex string that it is, not by using the
Insert menu.
 
R

Rajesh

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;
}


Diane Poremsky said:
Are you typing space or Enter after the url?
http://www.outlook-tips.net/archives/2004/20041007.htm

--
Diane Poremsky [MVP - Outlook]

Outlook & Exchange Solutions Center: http://www.slipstick.com/

Outlook Tips by email:
mailto:[email protected]

EMO - a weekly newsletter about Outlook and Exchange:
mailto:[email protected]

Do you sync your mailbox with a smartphone or pda?
http://forums.slipstick.com/showthread.php?t=39473



Rajesh said:
Steps to Re-Produce

1. Close Outlook if it is opened
2. Open an Outlook from a mail to link
<a href="mailto:[email protected]?subject=Hello%20again">
Send Mail</a>
3. Add a message body contains the link (www.microsoft.com).Click on the
link
4. Its not opening the page until the Outlook mail window is closed.
 
V

VanguardLH

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top