timberlineridge wrote in php

mail() and server timeouts

Hi guys,

I am using a (very!) simple PHP script to send mailing list e-mails via a HTML form. Basically it connects to a SQL database, pulls out the first address, sends an e-mail using mail() and then moves on to the next address. As you might expect, when the form is submitted there is a delay before the page refreshes while the mail is sent. This delay increases the more addresses are on the list.

At present, the list is small (around 250). I was wondering what happens when the list gets larger. Does the mail() command time out? I cannot adjust any server settings, so the mail server may time out too and then half the mail won't get sent (right?).

I am using PHP 4.3.2 on Win2k / IIS and can muck about with some server settings using ini_set() but have no other access.