Solved

Jmail / Timeout error

Posted on 2004-09-19
2
975 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
ID: 12100273
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
ID: 12101020
Thanks - that should be of some help also!

-Corey
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

831 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