[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] How can I speed up Sendmail?



"Shannon D. Denniston" <Shannon@xxxxxxxxxxxxxxxx> wrote:
> We recently attained a 2,000 e-mail per minute rate by
> bypassing sendmail and having the PHP script connect
> to the SMTP directly. The problem with this though is that
> the SMTP is timing out after 30 seconds. We have searched
> the script, but there is nothing about a timeout variable. Is
> this something that would need to be modified elsewhere on
> the RAQ?

By default a PHP script times out after 30 seconds.  Maybe that's what
you're noticing?  There are numerous ways you can override it.  Let's assume
you want to set it to 10 minutes.

Edit php.ini to set globally:
max_execution_time = 600

Add to VirtualHost container in httpd.conf to set for a specific site:
php_value max_execution_time 600

Add to .htaccess to set for files within a specific directory:
php_value max_execution_time 600

Set within a specific script:
set_time_limit( 600 );

HTH,

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/