You are here: Re: Concerned Re Mailinglist and hosting issues « All PHP « IT news, forums, messages
Re: Concerned Re Mailinglist and hosting issues

Posted by Manuel Lemos on 03/23/06 21:51

Hello,

on 03/22/2006 08:47 PM John said the following:
> I am considering using phpList to start a newsletter.
> I have a list of 1000+ subscribers, but I am concered abou the implications
> on my hosting account with regards to bandwidth, etc.
>
> How do I know it wont konk out and stop halfway... or worse make my entire
> website crash?
>
> What are the implications for running a mailinglist and my website on the
> same hosting acc and any tips on what OpenSource tools I can use?

I use this MIME message composing and sending class without any problems
but you are right to be concerned.

http://www.phpclasses.org/mimemessage

To send messages to many users and not be considered spam, you need to
specify each recipient address in the To: header. This means that you
need to queue separate message for each recipient.

The consequence of this is that you need to watch the available disk
space to prevent filling the disk with messages in the queue. The same
goes for CPU usage. Bandwidth has more to do with message size and
frequency.

Maybe it will not be a problem with 1000 messages at once but if you are
sending large messages, or frequent messages, or your list grows
significantly, you need to monitor your deliveries and introduce some
pauses.

That is what I do with class above. I execute a database query to
extract all recipients and if disk space gets lower a limit or the CPU
usage gets above a threshold, I make the script call sleep() to rest for
a few seconds. Then I revaluate the system usage and rest some more if
it was not enough.

One thing to avoid excessive CPU usage is that class above can cache
message bodies for non-personalized messages. This way it saves CPU and
time to recompute the same message body sent to different users.


--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.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

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