Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2003
    Location
    USA
    Posts
    18

    Unanswered: sending emails in ASP

    I have some 20000 users whom I need to send emails using ASP. My script worked fine until the number of users increased to such a large amount, so I believe its a Scripttimeout/Session Timeout problem that I am facing since my script stops running with a "Page cannot be displayed". We couldnt get to see the error because the "show friendly messages" on the browser was on.
    I want to know how will it affect my server if I increase the timeout values from
    Session.Timeout = 170
    Server.ScriptTimeout = 10000
    to
    Session.Timeout = 370 'approx 6.16 hrs
    Server.ScriptTimeout = 20000 'approx 5.5 hrs

    Any suggestions pointing to good urls and a solution to this problem will be appreciated.
    Thanks

  2. #2
    Join Date
    Jan 2003
    Location
    Midwest
    Posts
    138
    here is what I use to do mass mailings for clients

    Server.ScriptTimeout = 3600
    db_open(Application("ConnectionString"))
    set email = db_query("SELECT * FROM emails")
    Set textStreamObject = fs.OpenTextFile(Application("BasePath") & "templates\email.html",1,false,0)
    strBody = textStreamObject.ReadAll
    Set filetxt = fs.CreateTextFile(Application("BasePath") & "templates\emails_sent.txt",true,false)
    do until email.eof
    SendMailHTML email("email"), Application("OwnerEmail"), "Subject", strBody
    filetxt.WriteLine(email("email"))
    email.movenext
    loop
    filetxt.close
    db_close

  3. #3
    Join Date
    Feb 2003
    Location
    USA
    Posts
    18

    Question

    THanks for replying
    It gives me an error

    Microsoft VBScript runtime error '800a000d'
    Type mismatch: 'SendMailHTML'

    Any clues?

Posting Permissions

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