Workaround server limit for emails sent an hour
Posted: 26 Aug 2023, 10:13
Problem: If you have a Newsletter list, which is longer than your hourly limit for send/receive emails and Phoca Email component does not have a tool to solve this limitation, server will block your Newsletter sending when limit will be reached. Ok, server might send them latter, but I am not confortable with bumping in to the limits.
One of possibe workarounds:
Slice complete list (let's say list no. 1) in multiple sublists which are smaller, than the hourly server limit. My server limit is 300 and I have decided to cut the list in 200 subscriber groups in list 2, 3, ... I did it in PhpMyadmin with SQL command:
---
INSERT INTO <database_name>.phocaemail_subscriber_lists (id_subscriber, id_list)
SELECT id, <list_number>/*<list_number> is from the <database_name>.phocaemail_newsletter_lists number of the list we want to assign the same subscriber*/
FROM <database_name>.phocaemail_subscribers
LIMIT 200 OFFSET 0;/*LIMIT=size of sublist, OFFSET=0 for 1st sublist, 200 for second etc. (multiple of LIMIT size)*/
---
WARNING: before you try this at your own risk, please make backup of the tables which you are using, or backup complete site.
SQL code for table backup:
---
CREATE TABLE <backup_table_name> AS SELECT * FROM <existing_table_name>;
---
If complete list is named News, 1st sublist will be News1, then News2...
When you send Newsletter instead of sending it directly to News list, you will sent it first to News1, one hour after that to News2 and so on.
Please reply to my post with description of other ways to solve the problem of not reaching hourly email limit when you sending Newsletter. Thanks!
One of possibe workarounds:
Slice complete list (let's say list no. 1) in multiple sublists which are smaller, than the hourly server limit. My server limit is 300 and I have decided to cut the list in 200 subscriber groups in list 2, 3, ... I did it in PhpMyadmin with SQL command:
---
INSERT INTO <database_name>.phocaemail_subscriber_lists (id_subscriber, id_list)
SELECT id, <list_number>/*<list_number> is from the <database_name>.phocaemail_newsletter_lists number of the list we want to assign the same subscriber*/
FROM <database_name>.phocaemail_subscribers
LIMIT 200 OFFSET 0;/*LIMIT=size of sublist, OFFSET=0 for 1st sublist, 200 for second etc. (multiple of LIMIT size)*/
---
WARNING: before you try this at your own risk, please make backup of the tables which you are using, or backup complete site.
SQL code for table backup:
---
CREATE TABLE <backup_table_name> AS SELECT * FROM <existing_table_name>;
---
If complete list is named News, 1st sublist will be News1, then News2...
When you send Newsletter instead of sending it directly to News list, you will sent it first to News1, one hour after that to News2 and so on.
Please reply to my post with description of other ways to solve the problem of not reaching hourly email limit when you sending Newsletter. Thanks!