Server capabilities using batchSend()
Posted: Mon Feb 04, 2008 6:14 pm
Hi,
I am using SwiftMailer for the first time on a new project and I am trying to determine the capabilities of my server. The project is running on a dedicated windows 2003 server with an IMail SMTP server. My application needs to send large batch emails on the order of 50,000. How can I determine the capabilities of my SMTP server? Right now I am not able to determine how many messages are being sent. Here is what I am currently doing:
1. Construct the subject and body of the message.
2. Attach the decorator and anti-flood plugins (currently set to 500 emails every 10 seconds)
3. Use a while loop to add recipients to the recipient list
4. Send the message using batchSend()
At the end of my script I store the number returned by batchSend() in a database. My problem is that the database is not getting written to. So either the script is timing out or ????? I set my resource limits in php.ini to:
max_execution_time = 1200;
max_input_time = 60;
;max_input_nesting_level = 64 ;
memory_limit = 512M ;
I know that some addresses are getting through, I just don't know how many. When the anti-flood plugin is used does this determine the execution time of the script? So if I'm sending 30,000 emails it will take roughly:
(10 s/ 500) * 30,000 = 600 seconds
If this is true I believe my max_execution_time is set high enough, but I don't know for sure. Any help would be greatly appreciated.
Joe
I am using SwiftMailer for the first time on a new project and I am trying to determine the capabilities of my server. The project is running on a dedicated windows 2003 server with an IMail SMTP server. My application needs to send large batch emails on the order of 50,000. How can I determine the capabilities of my SMTP server? Right now I am not able to determine how many messages are being sent. Here is what I am currently doing:
1. Construct the subject and body of the message.
2. Attach the decorator and anti-flood plugins (currently set to 500 emails every 10 seconds)
3. Use a while loop to add recipients to the recipient list
4. Send the message using batchSend()
At the end of my script I store the number returned by batchSend() in a database. My problem is that the database is not getting written to. So either the script is timing out or ????? I set my resource limits in php.ini to:
max_execution_time = 1200;
max_input_time = 60;
;max_input_nesting_level = 64 ;
memory_limit = 512M ;
I know that some addresses are getting through, I just don't know how many. When the anti-flood plugin is used does this determine the execution time of the script? So if I'm sending 30,000 emails it will take roughly:
(10 s/ 500) * 30,000 = 600 seconds
If this is true I believe my max_execution_time is set high enough, but I don't know for sure. Any help would be greatly appreciated.
Joe