Timeout Error in Mail script

Results 1 to 2 of 2

Thread: Timeout Error in Mail script

  1. #1
    Join Date
    Dec 1969

    Default Timeout Error in Mail script

    Hi,<BR>I&#039;m trying to create a Newsletter script, where emails will be sent to subscribers periodically. I&#039;ve tried this by extracting the email addresses of each subscriber from database and send mail individually to each recipient until the recordset reaches EOF. But it is giving me Timeout Error from Server. Can anyone pls suggest a solution for this.I&#039;m using Persist software ASP Email component. Thanks in advance.<BR>Abhra

  2. #2
    Join Date
    Dec 1969

    Default RE: Timeout Error in Mail script

    seem like you&#039;re doing it the wrong way<BR><BR>you can either raise the script time out value on the server<BR><BR>or<BR><BR>write something that retrieves all the e-mail in a variable and send it as 1 mail instead of several mail which prolly caused the time out<BR><BR>mysql="select email from members where newsletter=1":execute(mysql)<BR>do while not myrs.eof<BR>recipients=recipients+myrs("email")&"; "<BR>myrs.movenext:loop<BR><BR>call mail(recipients,subject,message)<BR><BR>keep in mind that your mailserver might have a mximum of recipients set for an outgoing mail<BR><BR>maybe this helps

Posting Permissions

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