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) »
  • Cronjob trigering automaticly outgoing mail
Pages: [1]

Author Topic: Cronjob trigering automaticly outgoing mail  (Read 1650 times)

sarnat

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7.1.9
Cronjob trigering automaticly outgoing mail
January 31, 2010, 07:51:05 am
Dears,

I have installed CRM version 3.0.2 with joomla 1.5.15.
Completly configured the cronjob and other outbound mail settings.
Mailing protocal is SMTP
When creating mailings, the "Mail save and test" gives me a full OK result, but once
my mailing is sheduled it stays there, nevertheless the cronjob informs me on a regular basis
it it running.
I configured the path as described in the doc : administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php

The only way to have my mails send is to trigger is with following manual command :

 http://www.Mysite.com/administrator/index.php?option=com_civicrm&task=civicrm/mailing/queue&reset=1

Anyone a clue why the cronjob is performing this command automatically as it is supposed to do ?

Thanks in advance.

H.

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: Cronjob trigering automaticly outgoing mail
January 31, 2010, 10:45:18 am
Check http://wiki.civicrm.org/confluence/display/CRMDOC/Command-line+Script+Configuration

HTh
Kurund
Found this reply helpful? Support CiviCRM

sarnat

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7.1.9
Re: Cronjob trigering automaticly outgoing mail
January 31, 2010, 11:26:21 am
Thanks Kurund,

We based our configuration on that document already.

Thx anyway.

H.

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: Cronjob trigering automaticly outgoing mail
January 31, 2010, 10:41:48 pm
Quote
http://<sitename>/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=<username>&pass=<password>&key=<sitekey>

This worked for me.

Kurund
Found this reply helpful? Support CiviCRM

allbuster

  • I’m new here
  • *
  • Posts: 8
  • Karma: 1
Re: Cronjob trigering automaticly outgoing mail
February 01, 2010, 05:55:29 pm
Dears,

Sorry for my english.

I have exactely the same problem.

Joomla 1.5.15 and CiviCrm 3.0.3

A mail is scheduled but never sent with the cronjob.  The cronjob run each 10 minutes.
But it’s ok with : administrator/index.php?option=com_civicrm&task=civicrm/mailing/queue&reset=1

I have tested:
1) http://<sitename>/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php
2) http://<sitename>/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=<username>&pass=<password>&key=null
Remark : without key in the settings
3)
http://<sitename>/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=<username>&pass=<password>&key=<sitekey>
Remark : key (20 characters): without special character

4)
Wget does’nt immediately in the CronJob (that begin always with http://www.domain.ext/)
I put the command wget in a php file.
We indicate the username and password (Joomla) in the CronJob Panel for the protection with .htaccess
File :”SendCronJob.php” (in the root of Joomla)
<?php
wget -O - -q -t 1  --post-data="name=user1&pass=pass1&key=abcdefghijklmnopqrs” http://www.Site.ext/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php
?>

My imagination is now limited.   

Have you an other way?    :-\



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: Cronjob trigering automaticly outgoing mail
February 01, 2010, 07:00:04 pm
Quote
3)
http://<sitename>/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=<username>&pass=<password>&key=<sitekey>
Remark : key (20 characters): without special character

What happens if you type this url in the browser?

Kurund
Found this reply helpful? Support CiviCRM

allbuster

  • I’m new here
  • *
  • Posts: 8
  • Karma: 1
Re: Cronjob trigering automaticly outgoing mail
February 02, 2010, 02:27:09 am
Quote from: Kurund Jalmi on February 01, 2010, 07:00:04 pm
Quote
3)
http://<sitename>/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php?name=<username>&pass=<password>&key=<sitekey>
Remark : key (20 characters): without special character

What happens if you type this url in the browser?

Kurund


Hi,

I receive the Administrator screen from Joomla.



sarnat

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 7.1.9
Re: Cronjob trigering automaticly outgoing mail
February 07, 2010, 01:17:47 pm
I can confirm Allbuster's result. this is also the screen where I ended up after having tested
every possibility last week, same way as you mentioned previously.
Next thing I would like to try is Joomla userID = CRM userID = user Mailing address ???
A question of authorisations ??? Any clue ?

Cheers

allbuster

  • I’m new here
  • *
  • Posts: 8
  • Karma: 1
Re: Cronjob trigering automaticly outgoing mail
February 07, 2010, 04:49:57 pm
Dear,

I search other solutions but ...

Another test:
Login in Joomla :
http://www.site.be/administrator/components/com_civicrm/civicrm/bin/civimail.cronjob.php

Message error :
-------------------------------
Erreur du serveur!

Le serveur a èté victime d'une erreur interne et n'a pas été capable de faire aboutir votre requête.

Message d'erreur:
Premature end of script headers: civimail.cronjob.php

Si vous pensez qu'il s'agit d'une erreur du serveur, veuillez contacter le gestionnaire du site.
Error 500
-------------------------------

An idee?


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Cronjob trigering automaticly outgoing mail
February 07, 2010, 06:33:31 pm


can u check your apache error logs and get more details on the error message

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Cronjob trigering automaticly outgoing mail

This forum was archived on 2017-11-26.