note 79932 added to function.mail

From: Date: Thu, 20 Dec 2007 04:19:11 +0000
Subject: note 79932 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-133802@lists.php.net to get a copy of this message
mail() function for use with mass mailing is slow. Any options on how to speed this up? Alternative PHP tools? On an average server (2G RAM, 2.5+G dual-core proc,...) I've noticed that the mail() function typically takes .5 to 1.5 seconds to complete one call. I assume this is typical since it seems this way on all the servers I manage that use mail(). When looping through a few thousand recipient email addresses to send an email, the time to complete can become several hours. This is unacceptable to most clients, especially those in the news publishing industry where timing of email notifications is critical. Is this .5 to 1.5 seconds per mail() call typical or are there optimization options available to speed it up? If not are there any 3rd party mailing functions/classes that can easily be integrated with php scripts? Thanks in advance for any help anyone can give. ---- Server IP: 209.41.74.194 Probable Submitter: 69.143.223.158 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/79932 Del: integrated -- https://master.php.net/note/delete/79932/integrated Del: useless -- https://master.php.net/note/delete/79932/useless Del: bad code -- https://master.php.net/note/delete/79932/bad+code Del: spam -- https://master.php.net/note/delete/79932/spam Del: non-english -- https://master.php.net/note/delete/79932/non-english Del: in docs -- https://master.php.net/note/delete/79932/in+docs Del: other reasons-- https://master.php.net/note/delete/79932 Reject -- https://master.php.net/note/reject/79932 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#133802) next »