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.

By Steve Novoselac

Director of Digital Technology @TrekBikes, Father, Musician, Cyclist, Homebrewer

2 replies on “Maximum Length of a URL”

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.


Leave a Reply

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

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

Facebook photo

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

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.