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 »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • cron sollution for V1.8 civimail.cronjob.php authenticating
Pages: [1]

Author Topic: cron sollution for V1.8 civimail.cronjob.php authenticating  (Read 2750 times)

msn

  • I post frequently
  • ***
  • Posts: 152
  • Karma: 6
  • Please talk to the other site
cron sollution for V1.8 civimail.cronjob.php authenticating
July 31, 2007, 06:42:20 am
To execute civimail.cronjob.php in V1.8 you have to send it two more parameters: name=XXX and pass=YYY of a valid username and password of a drupal user, authenticating before executing the script. This is a 1.7-> 1.8 change.

Becouse I have a multi Drupal installation I must use a http://website.org/.../civimail.cronjob.php command, otherwise civimail.cronjob.php does not find the correct domain. Therefore I cannot use a command from server root. I installed CiviCRM in modules/all.

I solved this by execute a php file with cron. I named the file civimailcron.php The content of the file is:
<?php
@include("http://www.website.org/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=drupal_login_name&pass=drupal_login_pass");
?>


I placed this file in a map in the server root, unther the website root level so it can not been seen public: (password safety). Rights:755

In cron I made this command:
php ~/map/civimailcron.php

This is working fine. The green text is depending on costum situations.
I am not a script writer, feedback is welkom, otherwise I hope this helps other Civimail users to setup cron for civimail.cronjob.php.

regards
Martin

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • cron sollution for V1.8 civimail.cronjob.php authenticating

This forum was archived on 2017-11-26.