In Mail Engine options, "Batch email size" & "Batch email period" do not seem to function when configured from administer >> settings >> massmailer >> Mail Engine options >> Batch Processing. These options are supposed to limit the number of e-mails sent from the message queue by a period of time. (10 e-mails sent per hour, for ex..) I'm not sure if these options only work when manually flushing the message queue using send messages or when auto-sending messages with a cron process running. Since I cannot get auto-send functionality to work, I am assuming this defect is related to manual operation of the send messages feature or both manual & auto-send operations. (I'm re-testing auto-send functionality with cron enabled + host server time)

Initial Conditions
1. Massmailer and poormanscron modules must be enabled in: http://civicrm.civicspacelabs.com/home/admin/modules

Steps
1. Configure massmailer settings: http://civicrm.civicspacelabs.com/home/admin/settings/massmailer
2. In General Options, set "Time notation preference:" to 24h
3. In Mail Engine Options, set "Batch email size" to 2, "Batch email period" to 300 & uncheck "cron queue processing". (This
should configure mass mailer to send 2 e-mail messages every 5 min when the message queue is flushed)
4. Save Configuration.
5. Create a Mailing List: http://civicrm.civicspacelabs.com/home/admin/massmailer
6. Manage the Mailing List: http://civicrm.civicspacelabs.com/home/admin/massmailer/list/manage/#
7. Assign Current Subscribers, Add them manually by entering e-mail addresses or Subscribe a CiviCRM Group. (Subscribe at
least 3 people to the mailing list)
8. Add Subscribers.
9. Verify at least 3 e-mail addresses of subscribers in the Subscribers section and make sure you can access all accounts. (If you
can't, add subscribers or e-mail addresses where you can verify sent messages)
10.Compose a message for the list: http://civicrm.civicspacelabs.com/home/admin/massmailer/message/send
11.For List Assignments, check the list created in Step #5.
12.Set the Send date to: Current Month, Today's Date, Current Year, Current Hour, 1 min in the past (Note: Current Send date
and time must = time zone settings of host server since the send messages feature works according to the current time
of the host server. To determine the real time of your host server, look at the default date and time entered in the
Send date: fields on the mass mailer Compose Message page)
13.Queue Message
14.Send messages: http://civicrm.civicspacelabs.com/home/admin/massmailer/queue

Results
15.On the send messages page you will see that 3 or more messages have been sent in x.xx seconds.
16.Open 3 or more e-mail accounts from the users subscribed to the list and you will see that all messages have been received.

Comments

sdemps3’s picture

Questions
1. Are these batch options dependant on cron processing in the source code or the send messages function call from the admin block?

Gerhard -- Can you verify?

2. The description text for both features states that: "Please note, the following two values can be overridden by your ISP by using a server
wide configuration. So if you notice these values to be different in reality, that may be the case"

Gerhard -- How can the user/admin verify? Is there anything in the code about this?

sdemps3’s picture

Priority: Normal » Critical

Upgrading priority to critical since these are main features on the massmailer settings page for the administrator. If they cannot be fixed we should remove the fields from the page, then add the functionality back later.

sdemps3’s picture

I have finally verified that auto-send functionality works fine if you configure all messages to match the host server's time zone.. The functionality for flusing the queue with cron works the same as using the send messages button. Please ignore all of my statements about this function being broken.. I cannot edit this portion of the defect..

The Mail Engine options, however, still do not function correctly with auto-send. I set 2 e-mails to be sent per hour and 4 were sent in less than 10 seconds of each other. I suspect there is an issue with the ISP settings.

killes@www.drop.org’s picture

Status: Active » Fixed

Mails are now sent according to the user's TZ.

The batch functionality was never implemented, just some selct items existed. Removed them.

sdemps3’s picture

Fix verified.. I will submit a feature request later to add them back with functionality..

sdemps3’s picture

Status: Fixed » Closed (fixed)
joshon’s picture

http://docs.phplist.com/PhpListConfigSendRate

Use the config file to set the batch size and time limits.

Josh