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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Schedule Reminders for Activites
Pages: [1]

Author Topic: Schedule Reminders for Activites  (Read 916 times)

naseem_sarwar

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: civivrm version 4
  • CMS version: drupal 7
  • MySQL version: mysql 5+
  • PHP version: php version 5+
Schedule Reminders for Activites
January 05, 2012, 03:59:15 am
hi,
i need bit of your help. i have set the cronjobs for schedule reminders and reports in the crontabs. these seems fine but not working. i am not getting any email from it. although i have some questions which ll help me and other is future too.

Well my linux server is not actual server. it is virtual server on windows platform. all my actual emails are sending from the smtp server installed on windows server. There is no smtp server installed on virtual linux server. so first question is that is that might be the reason i am not getting any emails? Second, do i need to set schedule task on windows server rather on virtual server?

To make is clear I have set my crontabs on virtual server.

Please reply i need your expert opinion.
thanks

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Schedule Reminders for Activites
January 06, 2012, 01:05:25 am
naseem_sarwar :

You might to check your SMTP settings in Administer → System Settings → Outbound Mail
and use  "Save and Send Test Emai" button to check your settings.

Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

naseem_sarwar

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: civivrm version 4
  • CMS version: drupal 7
  • MySQL version: mysql 5+
  • PHP version: php version 5+
Re: Schedule Reminders for Activites
January 06, 2012, 01:19:33 am
These all setting are done and working fine. i have setup the cronjobs in linux box. but no email triggers somehow. i am putting my cronjobs code
Code: [Select]
CIVI_ROOT=/var/www/drupal/sites/all/modules/civicrm
PHP = nice -n19 /user/bin/php
PARAMS= -sdefault -udrupaluser -pdrupaluserpassword

*/5 * * * *  cd $CIVI_ROOT; $PHP bin/civimail.cronjob.php $PARAMS
*/5 * * * *  cd $CIVI_ROOT; $PHP bin/action.cronjob.php $PARAMS
*/5 * * * *  cd $CIVI_ROOT; $PHP bin/CiviReportMail.php $PARAMS

i am assuming this ll trigger after 5 mins recursively. is that right?

if thats right then no email is going through.  i am not using mutli sites. that's why i put sitename as default.  but if i put the actual sitename. will it make any difference? also i dont know how to test that my cronjobs are running? and its triggering these commands.
« Last Edit: January 06, 2012, 03:17:04 am by naseem_sarwar »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Schedule Reminders for Activites
January 06, 2012, 08:41:07 am
Quote
PHP = nice -n19 /user/bin/php

Is this correct? I think it might be /usr/bin/php

Kurund
Found this reply helpful? Support CiviCRM

naseem_sarwar

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: civivrm version 4
  • CMS version: drupal 7
  • MySQL version: mysql 5+
  • PHP version: php version 5+
Re: Schedule Reminders for Activites
January 06, 2012, 09:08:30 am
It is /usr/bin/php. my typo here.

 A Few questions,
i am not hosting multisites. so for params if i put -shttp://mysitename.com instead of -sdefault will it make any confusion? or both are fine?
for this one */5 * * * *  cd $CIVI_ROOT; $PHP bin/civimail.cronjob.php $PARAMS
if i put */5 * * * *  cd $CIVI_ROOT && $PHP bin/civimail.cronjob.php $PARAMS, will it be fine again? in this i replaced ; to  &&

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Schedule Reminders for Activites

This forum was archived on 2017-11-26.