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 »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Managing Scheduled Jobs "Mail Reports (mail_report)"
Pages: [1]

Author Topic: Managing Scheduled Jobs "Mail Reports (mail_report)"  (Read 593 times)

AhoyIT

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.5.52
  • CMS version: 3.6
  • MySQL version: 5.1.73-cll
  • PHP version: 5.4.24
Managing Scheduled Jobs "Mail Reports (mail_report)"
November 02, 2014, 08:16:55 am
Trying to set up a Sched. Job for "Mail Reports (mail_report)" and via the backend interfrace.

Can't seem to understand what is the correct "API call" i need to create ... Need to choose for list, which doens't have "mail report" so i tried "Mailing" \ "MailingJob" And then add the action "mail_report" ... for example i get: api.mailing.mailReport

But i keep getting an error message - What am i doing wrong?

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Managing Scheduled Jobs "Mail Reports (mail_report)"
November 03, 2014, 12:17:55 am
I do not know what the exact action should be, but  would guees you need to add 'mailReport' as your action. I think 'mail_report' is not a valid action
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Managing Scheduled Jobs "Mail Reports (mail_report)"
November 03, 2014, 08:50:58 am
Quote
0 9 * * 1   www-data php /var/www/drupal/sites/all/modules/civicrm/bin/cli.php -u cron -p xxxx -s www.example.org -e Job -a mail_report --instanceId=38 --format=print
Above is an example of a cron to send report 38 every monday morning at 9am.

The entity is Job and the action is mail_report.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Managing Scheduled Jobs "Mail Reports (mail_report)"

This forum was archived on 2017-11-26.