You are here: Re: [PHP] php mail function vs smtp server « PHP « IT news, forums, messages
Re: [PHP] php mail function vs smtp server

Posted by "Richard Lynch" on 10/31/05 20:03

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация