Re: php mail function vs smtp server

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

 



On Mon, October 31, 2005 4:10 am, Clive wrote:
> does anyone know whats better/uses less resource etc:
>
> If I run a loop to send a 1000 emails, should I use php's mail
> fucntions
> or send directly to the servers smtp server.

SMTP

PHP's mail() function was never designed for high-volume email.

It fires up a different process of sendmail for EACH email.

This is NOT cheap, nor efficient.

mail() is convenient.  It is not efficient.

Use mail() for quickie one-off emails.

Use something else for mass email.

There are classes/packages you can use to make this painless.
http://phpclasses.org has at least one that gets used/recommended a lot.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux