views:

55

answers:

1

We have a web application that allows users to send out customized emails to company employees and all recipients use Outlook 2007 as their email client. In rare occasions, it is possible that an email is sent with a hyperlink that has an apparently excessive number of characters. In these instances, there are no problems except the links will not open automatically when clicked in Outlook. The only way to open is to copy the URL and paste it into a browser.

We can handle this through code to not allow users to submit excessively long URLs but we'd like to avoid this situation, if possible. Before an email is sent, the server performs a number of HTML manipulations especially on URLs. If a user has submitted a long URL, we prefer to allow the long URL and make changes elsewhere.

Has anyone encountered this situation before and is it possible to overcome the character limitation so that links will open automatically when clicked?

+1  A: 

Are you sure that the limitation is in Outlook? Internet Explorer has a maximum URL length of 2083 characters. What happens if the computer's default browser is configured to be a different browser, such as Firefox or Safari, each of which has a much longer maximum URL length?

It could also be that Outlook is using IE's maximum URL limit as its own internal limit to ensure that the browser will be able to navigate to the URL the user clicks on. If that is the case then I'm afraid you might be out of luck.

Having said that, URLs that are over even 500 characters seem to be quite excessive, though I realize it might be difficult to avoid it. What exactly is in the URLs? Does it really need to be there?

Eilon
It is possible that it is related to IE but the URLs in question have between 700-1500 characters. It sounds absurd but users are submitting URLs with querystring values of other URLs that in turn have queurystring values of other URLs. It is absurd, I know, but the users are simply copying URLs from IE that someone else has entered somewhere else. It's hard for me to blame them when they are not aware of what's going on.I've tested with IE, Chrome, and Firefox as my default browser and Outlook still refuses to open these excessively long links.
Alison
@Alison, my answer was just a guess so I'm not sure how to work around this. Good luck!
Eilon