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) »
  • Question regarding scheduled jobs
Pages: [1] 2

Author Topic: Question regarding scheduled jobs  (Read 1000 times)

TorstenL

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.2.16
  • CMS version: Joomla 2.5.19
  • MySQL version: 5.6.16
  • PHP version: 5.5.9
Question regarding scheduled jobs
August 31, 2014, 07:58:16 am
Hi all,

I´m trying to figure out if the following is possible:

After calling a customer, I set the status in the activity itself to "Succesful", after saving the activity an email should be sent out automatically to the customer.
I´ve setup a scheduled reminder for this (see attach) and I´ve also enabled the "Send Scheduled Reminders" in the "Scheduled Jobs" menu.
I think I need to set the API to "Activity" but what is the API call then ?

Many thanks in advance for your help
BRgds
Torsten

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: Question regarding scheduled jobs
September 01, 2014, 12:56:59 am
Probably already done, but you are sure an email can actually be send from your installation?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

TorstenL

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.2.16
  • CMS version: Joomla 2.5.19
  • MySQL version: 5.6.16
  • PHP version: 5.5.9
Re: Question regarding scheduled jobs
September 01, 2014, 02:21:00 am
Hello Erik,

thanks for you reply.

That´s what I try to figure out, not sure how to configure civiCRM so that emails will be send automatically.
My question is, if this scenario is can be setup and if so, how to achieve this.

Best regards
Torsten

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: Question regarding scheduled jobs
September 01, 2014, 02:43:12 am
I understand Torsten. But is is hard to check everything out of the blue :-) Is it possible to send an email with your install at all? Can you try this? The scenario you describe should work.
Erik
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

TorstenL

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.2.16
  • CMS version: Joomla 2.5.19
  • MySQL version: 5.6.16
  • PHP version: 5.5.9
Re: Question regarding scheduled jobs
September 01, 2014, 04:42:23 am
Yeah, I know what you mean  ;)
If I select a person, I´m able to send emails (menu "Actions --> Send an email"), see attach.
But not with the scenario I described in my first post.
BRgds
Torsten

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: Question regarding scheduled jobs
September 01, 2014, 05:54:40 am
So if I understand you correcty the set up is good enough to send emails ,but the Scheduled Reminder job does not send them out. What does the job log of the 'Send OUt SChedules Reminders' scheduled job mention if you execute immediately?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

TorstenL

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.2.16
  • CMS version: Joomla 2.5.19
  • MySQL version: 5.6.16
  • PHP version: 5.5.9
Re: Question regarding scheduled jobs
September 01, 2014, 08:47:05 am
See attach, all seems to work fine but no email is sent out.

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: Question regarding scheduled jobs
September 01, 2014, 09:21:49 am
The cron job also says that it has created 1 reminder, can you see them in the Activities list?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

TorstenL

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.2.16
  • CMS version: Joomla 2.5.19
  • MySQL version: 5.6.16
  • PHP version: 5.5.9
Re: Question regarding scheduled jobs
September 01, 2014, 10:16:52 am
No, can´t see any new entries in the activity list.
The last entry you see in the attach is the phone call that I added with status "Successful" (or in German: "Erfolgreich")

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: Question regarding scheduled jobs
September 01, 2014, 11:38:30 pm
Strange. My next step would be to debug the cron job to check what prevents it to send emails. But I am not sure about your technical skills?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

TorstenL

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.2.16
  • CMS version: Joomla 2.5.19
  • MySQL version: 5.6.16
  • PHP version: 5.5.9
Re: Question regarding scheduled jobs
September 02, 2014, 02:35:01 am
I´ve set the debugging to enabled now (see attach "debugging_civicrm.jpg").
If I run the cron job manually, the log file still shows the date two days ago (see attach "debug_file.jpg")

Edit: That was for sending the scheduled reminders.
« Last Edit: September 02, 2014, 02:57:30 am by TorstenL »

TorstenL

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.2.16
  • CMS version: Joomla 2.5.19
  • MySQL version: 5.6.16
  • PHP version: 5.5.9
Re: Question regarding scheduled jobs
September 02, 2014, 03:00:55 am
If I try to send scheduled mailings, a log file is created, see attach.
« Last Edit: September 02, 2014, 03:03:39 am by TorstenL »

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: Question regarding scheduled jobs
September 02, 2014, 06:47:40 am
There is an error in there:
Quote
[info] $Fatal Error Details = Array
(
[message] => is not of the type Positive
Code: [Select]
=>[/quote]

That seems to be a bug in the processor. What version are you on? Did you check if there is a known issue for this ([url]https://issues.civicrm.org/jira/secure/Dashboard.jspa[/url])
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

TorstenL

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 4.2.16
  • CMS version: Joomla 2.5.19
  • MySQL version: 5.6.16
  • PHP version: 5.5.9
Re: Question regarding scheduled jobs
September 02, 2014, 07:06:49 am
I´m running CiviCRM Version: 4.4.6
No, did not check out this site. Question is why there is no log file created after running the cron job manually for the "Scheduled Reminders".

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: Question regarding scheduled jobs
September 02, 2014, 07:34:49 am
I have no idea Torsten :-) Once you know the reason for not running you usually also find the answers to those type of questions :-)
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Question regarding scheduled jobs

This forum was archived on 2017-11-26.