RE: [PHP-DB] Re: Mass mail
Hello Ben, thank you for answering. I concern about the execution time of the script. If I do a while{} and there send a mail() for each of mail addresses it might take some minutes. -Original Message- From: Ben Galin [mailto:[EMAIL PROTECTED] Sent: Monday, September 20, 2004 5:55 PM To: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Re: Mass mail On Sep 20, 2004, at 7:13 AM, Manuel Lemos wrote: > Now, for the actual composing and sending of the newsletters, there > are some optimizations that can be done depending on whether the > newsletters are going to be personalized (avoid it at all costs if > you can) or not. May I ask why? Are you referring to the additional time it would take the script to run or to a security issue or something else? Thanks, Ben -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Re: Mass mail
Hello, On 09/20/2004 11:54 AM, Ben Galin wrote: Now, for the actual composing and sending of the newsletters, there are some optimizations that can be done depending on whether the newsletters are going to be personalized (avoid it at all costs if you can) or not. May I ask why? Are you referring to the additional time it would take the script to run or to a security issue or something else? Yes, it takes much more time to send personalized messages because you have to generate different copies for each recipient. What I mean is that IMHO it is not worth to send personalized messages just to adapt the "Hello {name}" header (and the rest of the message is the same) unless you want to pretend that the messages are being sent by a human that really cares about the recipient person and not a bulk mailing machine. -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Re: Mass mail
Hello, On 09/20/2004 11:54 AM, Ben Galin wrote: Now, for the actual composing and sending of the newsletters, there are some optimizations that can be done depending on whether the newsletters are going to be personalized (avoid it at all costs if you can) or not. May I ask why? Are you referring to the additional time it would take the script to run or to a security issue or something else? Yes, it takes much more time to send personalized messages because you have to generate different copies for each recipient. What I mean is that IMHO it is not worth to send personalized messages just to adapt the "Hello {name}" header unless you want to pretend that the messages are being sent by a human that really cares about the recipient person and not a bulk mailing machine. -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Re: Mass mail
On Sep 20, 2004, at 7:13 AM, Manuel Lemos wrote: Now, for the actual composing and sending of the newsletters, there are some optimizations that can be done depending on whether the newsletters are going to be personalized (avoid it at all costs if you can) or not. May I ask why? Are you referring to the additional time it would take the script to run or to a security issue or something else? Thanks, Ben -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: Mass mail
Hello, On 09/20/2004 10:18 AM, Nikos wrote: A client of mine sends thousands of mails as newsletters and wants as to make an Interface to admin this list. Its easy to put this mail list in a MySQL table and make the interface on PHP language and with mail() function to send a newsletter. The question is that if this function can handle a thousand mail or more or there is a most appropriate way It depends. PHP mail() function relays on an SMTP server on Windows and on the sendmail wrapper program on Unix/Linux. Relaying on an SMTP server is slow and inefficient. If you can use a platform that uses Qmail or Postfix you are fine. Using sendmail or exim can also be a good solution but you need to configure how the messages are queued or else your PHP script will be running for a very long time. Now, for the actual composing and sending of the newsletters, there are some optimizations that can be done depending on whether the newsletters are going to be personalized (avoid it at all costs if you can) or not. You may want to take a look at this class that provides some means to optimized deliveries for bulk mailing. I use it to send over 100,000 every day. http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Re: Mass mail
Hi Nikos, There is a number of ways you can handle this. But I have found these days "many" web - hosts are limiting the number of emails a "domain" may send "per hour". Many have set the limit to "500 emails per domain per hour" ... Which means you can only send 500 emails per hour via the domain you are sending mail from. Now if you do not setup a "decent" mail out you can find only 500 emails are sent and the rest bounce because the limit was "attempted" to be exceeded. So if it is exceeded it will bounce back to the "root email address". But you can set up a mail out to only send so many emails an hour that your "host" allows. I have setup plenty of customized mail programs on servers that have a limit. So if the limit is 500 you set the program to send 499 an hour. SO it's not over for any reason. You can find out your limit or if any exist by contacting your web - host. If no limit is set you don't have to worry as much. Need more assistnace please email the list as my time limit of responding may vary. J From: "nikos" <[EMAIL PROTECTED]> To: "PHP-mailist (PHP-mailist)" <[EMAIL PROTECTED]> Date: Mon, 20 Sep 2004 16:18:57 +0300 Subject: Mass mail Hello list A client of mine sends thousands of mails as newsletters and wants as to make an Interface to admin this list. Its easy to put this mail list in a MySQL table and make the interface on PHP language and with mail() function to send a newsletter. The question is that if this function can handle a thousand mail or more or there is a most appropriate way Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php