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) »
  • Sent Mails Get Scheduled Instead of Being Sent Immediately
Pages: [1]

Author Topic: Sent Mails Get Scheduled Instead of Being Sent Immediately  (Read 3464 times)

adizo

  • I post occasionally
  • **
  • Posts: 70
  • Karma: -1
  • It doesn't take time. It takes truth!
  • CiviCRM version: 4
  • CMS version: Joomla
  • MySQL version: 3.6
  • PHP version: php5
Sent Mails Get Scheduled Instead of Being Sent Immediately
August 24, 2013, 03:48:21 pm
I find that mails that are sent immediately gets 'scheduled' and do appear under  Scheduled And Sent Mailings as scheduled. Even though i have set up Cron job to run every 5 minutes and i get an email that cron has just been run, yet i find that the mail dont go unless i run the cron job script through the browser. Can someone please help?

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Sent Mails Get Scheduled Instead of Being Sent Immediately
August 25, 2013, 01:13:28 am
'Immediately' means when the next cron job is run, and is something of a misnomer.  It seems that you have a problem with cron which is where you should be looking.  Here's an example of the command part of my cron, which works. (I'm using Drupal 7)

wget  -O - -q   -t 1 http://www.example.co.uk/sites/all/modules/civicrm/bin/cron.php?name=admin\&pass=xxxxxxxx\&key=blahblahblahblahblah
Andy Clark

adizo

  • I post occasionally
  • **
  • Posts: 70
  • Karma: -1
  • It doesn't take time. It takes truth!
  • CiviCRM version: 4
  • CMS version: Joomla
  • MySQL version: 3.6
  • PHP version: php5
Re: Sent Mails Get Scheduled Instead of Being Sent Immediately
August 25, 2013, 04:20:51 pm
Thanks a lot Clarkac. i noticed that the wget  -O - -q   -t 1 part of the command line was missing. So i inserted it at the begining of the comand line script but it still did not work.  This is the error message i got when the cron job runs: ERROR: You need to send a valid key to execute this file. See attached screenshot to see the command line. i dont know what am doing wrong Am also using drupal 7.


clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Sent Mails Get Scheduled Instead of Being Sent Immediately
August 27, 2013, 12:38:21 am
I can only see the beginning of the cron command in your screenshot.  Can you paste it all into a text file (changing the pw of course)?
Andy Clark

adizo

  • I post occasionally
  • **
  • Posts: 70
  • Karma: -1
  • It doesn't take time. It takes truth!
  • CiviCRM version: 4
  • CMS version: Joomla
  • MySQL version: 3.6
  • PHP version: php5
Re: Sent Mails Get Scheduled Instead of Being Sent Immediately
August 27, 2013, 02:22:57 am
Thanks, The full text is below:
wget  -O - -q   -t 1 http://www.icobainternational.org/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=admin&pass=xxxxxxx&key=sitekey


Thanks

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Sent Mails Get Scheduled Instead of Being Sent Immediately
August 27, 2013, 12:12:27 pm
I notice that you're running cronmail.cronjob.php.  I'm at 4.3.5 and running cron.php as you can see from my earlier post.  I think you should be running that.
Andy Clark

adizo

  • I post occasionally
  • **
  • Posts: 70
  • Karma: -1
  • It doesn't take time. It takes truth!
  • CiviCRM version: 4
  • CMS version: Joomla
  • MySQL version: 3.6
  • PHP version: php5
Re: Sent Mails Get Scheduled Instead of Being Sent Immediately
August 29, 2013, 05:20:59 am
Thanks a lot Clarkac. Am using Civicrm 4.0 and what i have is civimail.cronjob.php. What can i do now. Or could it be a problem with the  server where cron is being run?

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Sent Mails Get Scheduled Instead of Being Sent Immediately
August 29, 2013, 08:16:21 am
If you can, I'd suggest you upgrade to 4.2 or 4.3.  I know that 4.3.5 is pretty  solid so you should be good with that.  I first got acquainted with Civi at 4.1.6 so I have no knowledge of 4.0, sorry.
Andy Clark

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Sent Mails Get Scheduled Instead of Being Sent Immediately

This forum was archived on 2017-11-26.