SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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='mailto1@test.com;x2@test.com;.......;xn@test.com';
    window.open=toList;


    Thanks for your time.

  2. #2
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can any one suggest the best alternate solution for this..? Thanks for your time.

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,836
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    1. Load all the addresses into Outlook so that you don't need the JavaScript.

    or

    2. Use a server side mailing list script.

    or

    3. Get an account with one of the mailing list server sites.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •