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 Heyes on 10/31/05 12:34

Clive wrote:
> Hi
>
> 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.

Depends on your setup. If you're on Linux/Unix you could use the mail()
function along with the "-odq" option to Sendmail/Postfix/Exim etc
(fifth argument to the mail() function) which will dump all the mails
into the MTAs queue. After this, the MTA will handle delivery. This is
probably the quickest for this platform.

--
Richard Heyes
http://www.phpguru.org

 

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

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