Maximum Length of a URL

Working on some ASP.NET, and making an email list that prints to the screen. Easy enough. But they want to click on a URL and have it auto email (BCC specifically). so..

<a href="mailto:?bcc=list of emails">Click here to Email</a>

but some email lists were huge, some small. By trial and error and searching around Google, I figure around 2000 characters is the optimal length for the “list of emails” I tested in IE6 and Firefox 3.01 and the same result for both. If it is longer, the link just doesn’t work at all. If you are close the boundry in IE 6 you sometimes will get a “Mail client” error, but I am guessing that is because of the mailto: in the link.

Advertisements

2 thoughts on “Maximum Length of a URL”

  1. As far as I know, the restriction is on the command line and not the browser. The OS (in this case, windows), will actually launch the email client as a separate process, supplying it with the mailto-parameters as a cmdline argument. There is a length restriction to that.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s