Go Back   Cloud Computing > Sales > Hosting Services
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-25-11, 03:00
BOD Member
 
Join Date: Apr 2011
Posts: 85
Default Email restrictions?

Hi

I have cpanel shared hosting account.. And my host have email restrictions set which allows me to send only 300 e-mails per hour..

I use php script to send thousand emails.. can you help me with the way that will allow me to send emails without conflicting with the regulations set by my hosts.
Reply With Quote
  #2 (permalink)  
Old 05-25-11, 03:08
BOD Member
 
Join Date: Nov 2010
Posts: 14
Default

What I'll suggest is send the e-mails in batches... Batches constituting of small number of emails, out of your entire sending list..
With some time interval between each batch..!

And you'll be able achieve both the objectives.. i.e being able send the thousand email in a day without upsetting your hosts..

To achieve this please follow the following instructions..

( For example here we are taking the limit to send maximum number of e-mails allowed to sent in an hour is 300 ).

The first step is to find the configuration file for your phplist installation

Suppose you find it at location " /home/cPanelusername/public_html/list/config.php ".

Please edit the file using either cPanel File Manager ..

Or if you have shell access, open the file for editing in your favorite editor ( vi,nano or pico ).

Or download the file to your PC and edit using ( notepad, wordpad...etc)


Now look out for the section named "batch processing" in this file.

Here in you'll get code as :
Quote:

# define the amount of emails you want to send per period. If 0, batch
processing # is disabled and messages are sent out as fast as possible
define("MAILQUEUE_BATCH_SIZE",0);

# define the length of one batch processing period, in seconds (3600 is
an hour)
define("MAILQUEUE_BATCH_PERIOD",3600);

# to avoid overloading the server that sends your email, you can add a
little delay
# between messages that will spread the load of sending
# you will need to find a good value for your own server
# value is in seconds (or you can play with the autothrottle below)
define('MAILQUEUE_THROTTLE',0);
Now we'll edit these default settings to send the e-mails in batches
# define the amount of emails you want to send per period. If 0, batch
processing # is disabled and messages are sent out as fast as possible
define("MAILQUEUE_BATCH_SIZE",0);

# define the length of one batch processing period, in seconds (3600 is
an hour)
define("MAILQUEUE_BATCH_PERIOD",3600);

# to avoid overloading the server that sends your email, you can add a
little delay
# between messages that will spread the load of sending
# you will need to find a good value for your own server
# value is in seconds (or you can play with the autothrottle below)
define('MAILQUEUE_THROTTLE',12);

These settings allows PHPList to throttle 300 mails per hour, exactly as TOS suggests. The remaining e-mails per domain remain available for normal mailing operations.

Save the file at correct location and you are done...


Or the other work around is..

Quote:
# define the amount of emails you want to send per period. If 0, batch
processing # is disabled and messages are sent out as fast as possible
define("MAILQUEUE_BATCH_SIZE",300);

# define the length of one batch processing period, in seconds (3600 is
an hour)
define("MAILQUEUE_BATCH_PERIOD",3600);

# to avoid overloading the server that sends your email, you can add a
little delay
# between messages that will spread the load of sending
# you will need to find a good value for your own server
# value is in seconds (or you can play with the autothrottle below)
define('MAILQUEUE_THROTTLE',12);

The MAILQUEUE_BATCH_SIZE can be any number less than or equal to 300.

This prevents your 12 second delay from sending over 300 per hour.

The MAILQUEUE_THROTTLE should be no less than 12, which allows up to 300 e-mails per hour.

(Every 8 seconds would limit me to 450 emails per hour. Every 9 seconds would limit me to 400 emails per hour. Every 10 seconds would limit me to 360 emails per hour.)

The MAILQUEUE_BATCH_PERIOD must be 3600.
So you'll not be having any problem meeting the the limits set be hosting providers for sending maximum number of e-mails per hour...
Even if your account is hosted on shared server !!!!
__________________
Phil
Simple, Capable, Ready For the Future
Reply With Quote
  #3 (permalink)  
Old 05-25-11, 03:13
BOD Member
 
Join Date: Apr 2011
Posts: 85
Default

Reply With Quote
  #4 (permalink)  
Old 05-25-11, 20:12
carl owen's Avatar
Super Moderator
 
Join Date: Nov 2008
Posts: 1,061
Default

Thank you Phil for the wonderful article and the solution. It is certainly helpful

@Henry Rose: if you wish to send more emails per hour, you can consider one of our VPS hosting plans as we allow 500 emails per hour with our VPS hosting packages. You can upgrade your shared hosting plan at any point of time and choose the VPS hosting package for your requirements.
Reply With Quote
  #5 (permalink)  
Old 05-28-11, 06:37
BOD Member
 
Join Date: Apr 2011
Posts: 85
Default

@carl owen

500 emails per hour is simply great Thanks for this information.
Reply With Quote
  #6 (permalink)  
Old 05-28-11, 20:57
carl owen's Avatar
Super Moderator
 
Join Date: Nov 2008
Posts: 1,061
Default

Quote:
Originally Posted by Henry Rose View Post
@carl owen

500 emails per hour is simply great Thanks for this information.


You can even send more than 500 emails per hour if that's required. If you wish to send more than 500 emails per hour, you can consider a Cloud server or a Dedicated server. We allow 700 emails per hour and 3600 emails per hour with each of them respectively.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 18:47.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.