Re[2]: [PEAR] Issues with Mail (SMTP) and Mime_Mail

From: Date: Sat, 03 Aug 2002 07:32:20 +0000
Subject: Re[2]: [PEAR] Issues with Mail (SMTP) and Mime_Mail
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2037@lists.php.net to get a copy of this message
ML> You really just have to understand what is envolved before you ML> decide that PHP is or it isn't appropriate for each job. If you do ML> not know how to do it efficiently, just do not assume PHP is not ML> good enough. I never assumed PHP was not good enough. I just know that the structure i'm using is not perfect at the moment and needs to be changed. I'll make changes to my app. as soon as possible, but since my time is quite limited (by my boss) at the time being, i try to gather as many advices as possible before i keep on developping. In my opinion, the biggest error in my "app" at the moment is the loop that sends the emails, since every Mail::send call using SMTP driver makes a new connection to the SMTP server then disconnects. In my situation, 3500+ connections / disconnections are made. It looks like if i give the Mail::send function an array as a parameter, there will be one connection, 3500 messages sent, then one disconnection. I assume it will be much faster. I will also implement this "delayed send" method, queuing the mailing operations in a MySQL DB, then processing all the mailings using a command line script called by a crontab. By the way, Alexander, are there methods to interface majordomo (or ezml) with PHP ? Any sample i could have a look at ? Our application is not only an email sending tool, but also a multiuser web based mailing list management tool. So maybe i could keep on using PHP to manage the database, then send the mailings using a "real" Mailing List tool. Thanks, and regards. Katana / Bertrand mailto:katana@katana-inc.com

« previous php.pear.general (#2037) next »