Tom Muck's blog
Customer Contact plugin hints
Thursday, June 25, 2009 7:10:46 PM
Our new Customer Contact eNewsletter plugin allows you to send emails to customers and other contacts in your Cartweaver database. Sending email through a browser is a little different than using a service, if you have not done it before -- the execution time will vary depending on the speed of your server and number of emails you are creating. A list of 1000 emails might take 1-3 minutes to complete, and bigger lists can take proportionally longer. I used to send to lists of 50,000-100,000 for a large company, and the browser would be open for up to an hour. Sending personalized email can be a slow process.
As with anything, it's probably a good idea to test with smaller lists first, or lists consisting of your own email address, however there are a few things you can do if you are timing out or having other difficulties with larger lists:
For PHP:
1. make sure you have a valid file and/or email address in the CWError.php file. This can help track down problems
2. make sure that your php.ini setting for max_execution_time is set high enough for the large list. By default the maximum is 30 seconds, which can get you through a small list, but to send 1000 messages your maximum might need to be 100-200 seconds or more. Your page will take the full time to complete.
3. Make sure web server timeouts are large enough. Consult your web server documentation about page request timeouts.
For ColdFusion:
1. Make sure the ColdFusion setting for page execution is large enough, if it is enabled, or put a <cfsetting> tag in your cwcc_SendEmails.cfm file. This article talks about ColdFusion timeouts:
http://kb2.adobe.com/cps/194/tn_19438.html
2. Make sure web server timeouts are large enough. Consult your web server documentation about page request timeouts.
As with anything, it's probably a good idea to test with smaller lists first, or lists consisting of your own email address, however there are a few things you can do if you are timing out or having other difficulties with larger lists:
For PHP:
1. make sure you have a valid file and/or email address in the CWError.php file. This can help track down problems
2. make sure that your php.ini setting for max_execution_time is set high enough for the large list. By default the maximum is 30 seconds, which can get you through a small list, but to send 1000 messages your maximum might need to be 100-200 seconds or more. Your page will take the full time to complete.
3. Make sure web server timeouts are large enough. Consult your web server documentation about page request timeouts.
For ColdFusion:
1. Make sure the ColdFusion setting for page execution is large enough, if it is enabled, or put a <cfsetting> tag in your cwcc_SendEmails.cfm file. This article talks about ColdFusion timeouts:
http://kb2.adobe.com/cps/194/tn_19438.html
2. Make sure web server timeouts are large enough. Consult your web server documentation about page request timeouts.
Category tags: Cartweaver, ColdFusion, FAQ, PHP, Plug-ins
Posted by Tom Muck
Add comment
|
View comments (0) |
Permalink
|
Trackbacks (0)
|
Digg This
Before posting comments or trackbacks, please read the posting policy.
Blog RSS feed