Answers.Body: <p>Is there a reason you're using the "CiviCRM Cron" module?  That's adding an needless level of complexity to your site.  Since you are able to get the job to work by manually executing the job, I suspect that there's a problem in the way you've configured the "CiviCRM Cron" module.</p>
  
  <p>Disable the module, and set up cron the normal way.  You'll want CiviCRM's cron job to run way more often (every 5-15 minutes) than Drupal's cron should (every 1-3 hours).  Doing a real cron job will also bypass problems that may crop up with the "CiviCRM Cron" Drupal module.</p>
  
  <p>Here's how.  Visit the <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs" rel="nofollow">Managing Scheduled Jobs page</a> on the CiviCRM wiki for reference.</p>
  
  <p><strong>If you have Drush installed</strong>, just use the <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs#ManagingScheduledJobs-Drushmethod" rel="nofollow">"Drush Method" from that page</a>.  Test it out on the command line, and if that works, set the cron job to be something like</p>
  
  <pre><code>*/6 * * * * /usr/bin/drush -u 1 -r /path/to/drupal -l www.example.org civicrm-api job.execute auth=0 -y
  </code></pre>
  
  <p>That runs every 6 minutes, which makes a nice even 10 runs per hour.</p>
  
  <p><strong>If you don't have Drush,</strong> use the following steps (the "<a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs#ManagingScheduledJobs-PHPclimethod" rel="nofollow">PHP CLI method</a>"):</p>
  
  <ol>
  <li>Create a user account that has "Access CiviCRM" and "Administer CiviCRM" privileges.  (You could theoretically use your own, but you will be putting the password in plain text in the cron job, so it's safer to create a separate one.)</li>
  <li><p>Put together what you need in this format:</p>
  
  <p><code>php /path/to/civicrm/bin/cli.php -s site -u user -p password -e Job -a execute</code></p>
  
  <p>You can drop the "-s site" if you only have one site running.  Replace the word "user" with your new user's Drupal username, and the word "password" with its password.</p></li>
  <li><p>If you have SSH access and are comfortable with the command line, you'll have a leg up.  Try running that command.  Check your Scheduled Jobs page to see that it ran (making sure that your mailing sender job is enabled and set to run on every cron run--not hourly or daily).</p></li>
  <li><p>Assuming that worked, set up the cron job</p>
  
  <p><code>*/6 * * * * php /path/to/civicrm/bin/cli.php -s site -u user -p password -e Job -a execute</code></p>
  
  <p>Again, I like six minutes to make the arithmetic easy by having 10 cron runs per hour.</p></li>
  </ol>
  
  <p>This should dodge any problems with the "CiviCRM Cron" module, and it should allow you to run your mailings and SMS messages much more promptly.</p>
  
  <p>For reference, "send immediately" <em>does</em> depend upon cron to run.  It actually isn't literally immediate--it just schedules it for the current time, and cron takes it from there.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-30T16:47:17.767Z
Answers.Text: Thank you very much Andrew. I worked through your comment and it worked!
Answers.UserDisplayName: Sean
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-30T13:05:21.070Z
Answers.LastActivityDate: 2015-06-30T13:05:21.070Z
Answers.UserDisplayName: Andie Hunt
Body: <p>I'm trying to setup Mass SMS and Mailing and seem to be running into some problems. I can send mail and SMS directly to an individual but the scheduled SMS and mail does not work. I know this has to do with Cron being configured incorrectly but I'm not sure where to look. I have CiviCRM 4.6.3 installed on Drupal 7.37. I also have installed the Drupal Cron module from <a href="https://www.drupal.org/project/civicrm_cron" rel="nofollow">here</a>.</p>
  
  <p>When the job is manually executed I get a success message. Where are some other places I should be checking?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-26T16:37:47.750Z
Comments.Text: How often are your sites cron running? Could it just be that you did not wait long enough?
Comments.UserDisplayName: Flying
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-26T16:39:43.237Z
Comments.Text: To test the SMS and Mailing, I've used the "Send Immediately" selection.
Comments.UserDisplayName: Sean
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-26T16:42:19.750Z
Comments.Text: I would suspect (I don't know this...) that "Send immediately" is not depended on the cron running. So again, how often does your sites cron run?
Comments.UserDisplayName: Flying
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-26T16:47:02.520Z
Comments.Text: It's my understanding that the job is "Scheduled" immediately which is executed by cron. Right now I have the Send Scheduled SMS job run frequency set to 'Every time cron job is run'.
Comments.UserDisplayName: Sean
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-26T16:49:23.567Z
Comments.Text: And how often is cron job run on your site? This would be a Drupal setting, not a CiviCRM setting.
Comments.UserDisplayName: Flying
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-26T16:51:40.977Z
Comments.Text: Oh ok. It's set for every 3 hours and the lowest is 1 hour. Is there any way to set it to run jobs immediately?
Comments.UserDisplayName: Sean
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-26T16:54:04.170Z
Comments.Text: I don't know how to do that. I only know that someone has set this to 1 minute on our site, so yes it should be possible. But then suddenly it is a Drupal question, so maybe you get quicker answer if you ask on Stack exchange for Drupal?
Comments.UserDisplayName: Flying
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-26T17:01:37.323Z
Comments.Text: I will look into it, but when I run cron manually in Drupal it still doesn't work. It give a success message and it gives started a completed time stamp but the SMS was not received.
Comments.UserDisplayName: Sean
Tags: <cron-job>
Title: Unable to send mass SMS or Mailing
ThreadText: # Unable to send mass SMS or Mailing
  
  (Asked by: username_0 on 2015-06-26)
  
  I'm trying to setup Mass SMS and Mailing and seem to be running into some problems. I can send mail and SMS directly to an individual but the scheduled SMS and mail does not work. I know this has to do with Cron being configured incorrectly but I'm not sure where to look. I have CiviCRM 4.6.3 installed on Drupal 7.37. I also have installed the Drupal Cron module from [here](https://www.drupal.org/project/civicrm_cron).
  
  When the job is manually executed I get a success message. Where are some other places I should be checking?
  
  **Tags:** cron-job
  
  > **Comments:**
  > **username_1**: How often are your sites cron running? Could it just be that you did not wait long enough?  
  > **username_0**: To test the SMS and Mailing, I've used the "Send Immediately" selection.  
  > **username_1**: I would suspect (I don't know this...) that "Send immediately" is not depended on the cron running. So again, how often does your sites cron run?  
  > **username_0**: It's my understanding that the job is "Scheduled" immediately which is executed by cron. Right now I have the Send Scheduled SMS job run frequency set to 'Every time cron job is run'.  
  > **username_1**: And how often is cron job run on your site? This would be a Drupal setting, not a CiviCRM setting.  
  > **username_0**: Oh ok. It's set for every 3 hours and the lowest is 1 hour. Is there any way to set it to run jobs immediately?  
  > **username_1**: I don't know how to do that. I only know that someone has set this to 1 minute on our site, so yes it should be possible. But then suddenly it is a Drupal question, so maybe you get quicker answer if you ask on Stack exchange for Drupal?  
  > **username_0**: I will look into it, but when I run cron manually in Drupal it still doesn't work. It give a success message and it gives started a completed time stamp but the SMS was not received.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-06-30. Score: 1 | Accepted answer
  
  Is there a reason you're using the "CiviCRM Cron" module?  That's adding an needless level of complexity to your site.  Since you are able to get the job to work by manually executing the job, I suspect that there's a problem in the way you've configured the "CiviCRM Cron" module.
  Disable the module, and set up cron the normal way.  You'll want CiviCRM's cron job to run way more often (every 5-15 minutes) than Drupal's cron should (every 1-3 hours).  Doing a real cron job will also bypass problems that may crop up with the "CiviCRM Cron" Drupal module.
  Here's how.  Visit the Managing Scheduled Jobs page on the CiviCRM wiki for reference.
  If you have Drush installed, just use the "Drush Method" from that page.  Test it out on the command line, and if that works, set the cron job to be something like
  */6 * * * * /usr/bin/drush -u 1 -r /path/to/drupal -l www.example.org civicrm-api job.execute auth=0 -y
  
  That runs every 6 minutes, which makes a nice even 10 runs per hour.
  If you don't have Drush, use the following steps (the "PHP CLI method"):
  
  Create a user account that has "Access CiviCRM" and "Administer CiviCRM" privileges.  (You could theoretically use your own, but you will be putting the password in plain text in the cron job, so it's safer to create a separate one.)
  Put together what you need in this format:
  php /path/to/civicrm/bin/cli.php -s site -u user -p password -e Job -a execute
  You can drop the "-s site" if you only have one site running.  Replace the word "user" with your new user's Drupal username, and the word "password" with its password.
  If you have SSH access and are comfortable with the command line, you'll have a leg up.  Try running that command.  Check your Scheduled Jobs page to see that it ran (making sure that your mailing sender job is enabled and set to run on every cron run--not hourly or daily).
  Assuming that worked, set up the cron job
  */6 * * * * php /path/to/civicrm/bin/cli.php -s site -u user -p password -e Job -a execute
  Again, I like six minutes to make the arithmetic easy by having 10 cron runs per hour.
  
  This should dodge any problems with the "CiviCRM Cron" module, and it should allow you to run your mailings and SMS messages much more promptly.
  For reference, "send immediately" does depend upon cron to run.  It actually isn't literally immediate--it just schedules it for the current time, and cron takes it from there.
  
  > **Comments:**
  > **username_0**: Thank you very much Andrew. I worked through your comment and it worked!  
  
  ---
  
  