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]
|