Solved

Jmail / Timeout error

Posted on 2004-09-19
2
963 Views
Last Modified: 2012-06-27
Having a problem:
Client says: I am trying to send an e mail to all member in a group and after 2 minutes I get this message:

email: to members in selected group
Active Server Pages error 'ASP 0113'

Script timed out

/classregistration/cms/email.asp

The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.

What does it mean?  Are all my e mails getting through?  I have called some people and some told me they have received it and some told me they haven't.  

In the email.asp:
<script language="JavaScript">
      function DoSubmit(op) {
            document.frmEmail.op.value = op;
            document.frmEmail.submit();
      }
</script>
<%
CheckPermissionCMS(SITEOWNER)

dim op, id, rs, res, message, errmessage, emailsubject, emailbody
op = Request.Form("op")
emailsubject = Request.Form("emailsubject")
emailbody = Request.Form("emailbody")
if op = "m" then 'send email to one member
      id = Request.Form("memberID")
      if not isNumeric(id) then
            rw "Invalid member ID"
            re
      end if
      'rw "email: to selected member"
      SendBulkMessageByID id, emailsubject, emailbody
elseif op = "g" then 'send email to one group
      id = Request.Form("groupID")
      rw "email: to members in selected group"
      SendBulkMessageByGroup id, emailsubject, emailbody
elseif op = "a" then 'send email to all members
      rw "email: to all members"
      SendBulkMessageAll emailsubject, emailbody
end if
set rs = GetMemberListBrief
%>
<br>
<form name="frmEmail" action="email.asp" method="post">
<input type="hidden" name="op" value="">
<table class="formTable" cellpadding="5" cellspacing="0" border="0" align="center" width='50%'>
      <tr><td class="formTitle">Send bulk email</td></tr>
      <%if message <> "" then%>
      <tr><td colspan="2" class="message"><%=message%></td></tr>
      <%elseif errmessage <> "" then%>
      <tr><td colspan="2" class="errmessage"><%=errmessage%></td></tr>
      <%end if%>
      <tr><td>&nbsp;</td></tr>
      <tr>
            <td width="100%">
                  <table cellspacing="0" cellpadding="5" width="100%" border="0">
                        <tr>
                              <td colspan="2" align="center"><input type="text" class="text" name="emailsubject" size="60" value="write email subject here"></td>
                        </tr>
                        <tr>
                              <td colspan="2" align="center"><textarea name="emailbody" class="text" rows="5" cols="60">write email message here</textarea>
                        </tr>
                        <tr>
                              <td width="50%" align="center"><select name="memberID"><%GenerateCombo rs, "memberID", "MemberName", "text"%></select></td>
                              <td width="50%" align="center"><select name="groupID"><%GenerateGroupCombo ""%></select></td>
                        </tr>
                        <tr>
                              <td width="50%" align="center"><input type="button" value="Send to member" onClick="javascript:DoSubmit('m');"></td>
                              <td width="50%" align="center"><input type="button" value="Send to group" onClick="javascript:DoSubmit('g');"></td>
                        </tr>
                        <tr><td colspan="2">&nbsp;</td></tr>
                        <tr>
                              <td colspan="2" align="center"><input type="button" value="Send to all members" onClick="javascript:DoSubmit('a');"></td>
                        </tr>
                  </table>
            </td>
      </tr>
</table>
<%set rs = nothing%>

Any suggestions or should I use nother form handler or add something?

Thanks!

-Corey
0
Comment
Question by:coreybryant
2 Comments
 
LVL 8

Accepted Solution

by:
a_twixt_in_the_tale earned 500 total points
Comment Utility
ur SendBulkMessage functions mite b taking a long time in running.
so if you have set a timeout for the script, this would cause ur asp script to timeout and stop.

Could you check ur passed list and the list of ppl who hv got the mails. if these ppl r the ones at the top of the list (ie ones processed first) this is most likely ur problem

To increase the script timeout using IIS Admin tools (You need to be logged in as someone with admin rights I guess)
Go to IIS > Default Web Site > Properties <right click> > Home Directory <tab> > Configuration <button>  > App Options <tab> > ASP Script timeout - increase this
Set it a bigger number (setting it to 0 means the script never times out)

or set Server.ScriptTimeout to a high value (ive nvr tried this though :))

:)
Don
0
 
LVL 29

Author Comment

by:coreybryant
Comment Utility
Thanks - that should be of some help also!

-Corey
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now