Javascript email issue with huge email list

I’m trying to open an default email client (outlook) with 200+ emails by the javascript.

When the list consists of a few emails it works fine, when the list is large, I am getting “The data area passed to a system call is too small” error.

If anybody has an idea please help me out.

Code:-

var toList=‘mailto:x1@test.com;x2@test.com;.......;xn@test.com’;
window.open=toList;

Thanks for your time.

Can any one suggest the best alternate solution for this…? Thanks for your time.

  1. Load all the addresses into Outlook so that you don’t need the JavaScript.

or

  1. Use a server side mailing list script.

or

  1. Get an account with one of the mailing list server sites.

Thanks for your reply.
We want it to go via the user’s local mail client. It has to be 100% client-side. The e-mail list will be increasing day by day.
So, It wouldn’t be possible to load all addresses to the users outlook. Is there any way to work it out by using javascript…?

Thanks again.