CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Cron and limiting 500 emails
Pages: [1]

Author Topic: Cron and limiting 500 emails  (Read 1159 times)

wrender

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
Cron and limiting 500 emails
April 01, 2010, 10:59:48 am
Hello,

I am a bit confused on the terminology used for sending out emails (Basically the difference between Mailer Batch Limit and Mailer Spool Limit).  What I would like to do is limit the number of emails sent out per day to 500.  But I would still like all emails to go out.  So say there are 1600 emails, it would be sent out over 4 days.

I found the settings in civimail.  Here is what I currently have them set to:


Mailer Spool Period: 180
Mailer Batch Limit: 500
Mailer Spool Limit: 0
VERP Separator: .

My Cron job is set as below which makes it run the civmail.cronjob.php once a night.
0     0     *     *     *      wget -O - -q -t 1 --post-data='name=username&pass=password&key=mykeyishere' http://www.website.ca/sites/all/modules/civicrm/bin/civimail.cronjob.php


So, I am wondering if this will work.  Or maybe I need to run cron more often, with different settings in the civimail configuration.

Thank you,


wrender

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
Re: Cron and limiting 500 emails
April 05, 2010, 08:12:35 pm
Does anyone have any experience with this?

brigittem

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 1
Re: Cron and limiting 500 emails
April 17, 2010, 01:35:12 am
Sorry, I've no answer for you but I've exactly the same need. My provider allows only 500 mail in a day and I've to send 1500 mail.

I'll probably test this this month, and I'll let you know how I managed it and the results.

Brigitte

dschafer

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 3
    • Backoffice Thinking
  • CiviCRM version: 3.2.3 - 4.4.4
  • CMS version: Drupal 6.x, 7.x, Wordpress
  • MySQL version: 5.1.x - 5.5.x
  • PHP version: 5.2.x - 5.4.x
Re: Cron and limiting 500 emails
April 21, 2010, 06:37:28 am
Hi
Here is how the settings appear to work on our site under 3.0.3

Mailer spool period: This appears to be the retry interval if the server cannot connect to the receivers mail server.

Mailer batch limit: This is the number of emails sent each time the cron job (civimail.cronjob.php) is executed.

Mailer spool limit: This determines whether to send the mail immediately or spool it to be handled by the cron job. It appears to be based on the number of messages. A setting of 0 causes all sent mail to be spooled and sent through the cron process.  Our setting is 10 so a mailing of 10 or less is sent immediately.

I haven't looked at the code to confirm this but this is the behaviour we see.

If your batch limit is 500 and your ISP limit is 500 you can only run the cron job once per day. Looks like you should also keep the spool limit at 0 to ensure you don't have small or indivdual mailings that put you over your limit.


-- Dave

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Cron and limiting 500 emails

This forum was archived on 2017-11-26.