Answers.Body: <p>Success, with minor change in syntax I am now able to send schedule mail using Cron jobs to kick off schedule mails.  Here is my method for running CiviCRM cron jobs on Bluehost shared hosting every 16 minutes. Previously I had also specified the the parameter job.execute, which I have removed.</p>
  <pre><code>wget -O - -q -t 1 'https://&lt;my-domain&gt;/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=&lt;username&gt;&amp;pass=&lt;password&gt;&amp;key=&lt;sitekey&gt;'
  </code></pre>
  <p>I have scheduled 5 different mailing jobs at 15-60 minute intervals and each has delivered within 3 minutes of scheduled sending.  Moreover, my Cron status is &quot;Cron Running OK&quot;.</p>
  <p>Bluehost does limit the frequency of cron jobs on shared hosting to between 16 and 25 minutes, so cron is kicking off as frequently as possible.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-01T16:28:22.817Z
Answers.LastActivityDate: 2020-07-01T16:28:22.817Z
Answers.UserDisplayName: Dwight Martino
Answers.Body: <p>Welcome to SE!  If it were working when you use 'Execute now' but not from cron, then I'd look at the cron settings.  But in your case 'Execute now' is not producing mails and that does not involve cron.</p>
  <p>=== edited ===</p>
  <ul>
  <li>Are you using Mosaico and Flexmailer - if so, which versions?</li>
  <li>What are your settings for outbound mail?</li>
  <li>At the place where you add recipient groups, how many recipients does it count?</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-26T10:05:53.380Z
Answers.Text: I agree with the first part from Aidan, in that cron is not the problem, but I don't think the question is anything to do with Scheduled Reminders. I just read the question as being about Scheduled Mailings. The log matches what I get for successful operation of the Scheduled Mailing job.
Answers.UserDisplayName: Mick Kahn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-26T10:24:40.113Z
Answers.Text: Oops - thanks @MickKahn!  I'm sure I read 'scheduled reminder' somewhere - must have been pre-coffee! Edited now
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-26T14:42:33.953Z
Answers.Text: I am using FlexMailer 1.1.1, and Mosaico 2.4.1592820024.
  
  Settings - Outbound Mail: [ mail() ]
  
  Recipients:  Somehow the test group was empty.  That would explain a lot.
  
  
  Now that I have refilled the test group, mailing does function when I go to Schedule Jobs and hit Execute Now for process_mail.   Considering that I'm still getting a "Cron Not Running - No cron runs have been recorded" message, I believe that cron is not kicking off.  Was there something wrong with my syntax?
Answers.UserDisplayName: Dwight Martino
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-27T06:13:35.347Z
Answers.Text: @DwightMartino you might want to jump in at chat.civicrm.org about this as well - I and a  fellow admin got some great help from Michael O'Toole recently with setting up cron on Bluehost. A challenge we had is the "jailed shell" that Bluehost allows with cPanel. See https://my.bluehost.com/hosting/help/180 and https://docs.cpanel.net/knowledge-base/accounts/virtfs-jailed-shell/ .
Answers.UserDisplayName: Joe McLaughlin
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-26T09:25:06.843Z
Answers.LastActivityDate: 2020-06-26T10:21:53.413Z
Answers.LastEditDate: 2020-06-26T10:21:53.413Z
Answers.UserDisplayName: Aidan
Body: <p><strong>Relevant set-up information:</strong></p>
  <ul>
  <li>Hosting: Bluehost Shared Hosting</li>
  <li>CMS: WordPress</li>
  <li>CiviCRM version: 5.25.0</li>
  </ul>
  <p>Here's what works:</p>
  <ol>
  <li>Sending email from via &quot;Contacts &gt; New Mail&quot;</li>
  <li>Sending a test mail from &quot;Settings - Outbound Mail&quot;</li>
  <li>Sending a test mail from a mailing in CiviMail under &quot;Define Mailing&quot; from the Preview pane</li>
  </ol>
  <p>Here's what doesn't work:</p>
  <ol>
  <li>Sending a scheduled mail via CiviMail's &quot;Review and Schedule&quot;, neither in &quot;Send Immediately&quot; nor &quot;Send at:&quot;;</li>
  <li>Going to Schedule Jobs and hitting Execute Now for Sending Mail;</li>
  </ol>
  <p>Now I'm told by the system that Cron jobs are not set up, though I have put one in CPANEL.</p>
  <p>Here is my CRON command that is running every 5 minutes:</p>
  <pre><code>wget -O - -q -t 1 'https://&lt;domain&gt;/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=&lt;username&gt;&amp;pass=&lt;password&gt;&amp;key=&lt;sitekey&gt;&amp;job=execute'
  </code></pre>
  <p>The &quot;username&quot; is an Administrator.</p>
  <p>Tech support says my Cron jobs are running.
  &quot;Scheduled Jobs Log&gt; Send Scheduled Mailings&quot; states that jobs are getting kicked off</p>
  <pre><code>Entity: job Action: process_mailing
  Summary
  Finished execution of &quot;Send Scheduled Mailings&quot; with result: Success (a:1:{s:9:&quot;processed&quot;;i:0;})
  Details
  
  Parameters parsed (and passed to API method): 
  a:1:{s:7:&quot;version&quot;;i:3;}
  
  Full message: 
  Finished execution of Send Scheduled Mailings with result: Success (a:1:{s:9:&quot;processed&quot;;i:0;})
  </code></pre>
  <p>Despite all this, no mails are showing up in the test groups inboxes.</p>
  <p>Is it my Cron job settings?  If so, has anyone been able to set up cron jobs effectively in CPANEL for CiviCRM?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-06-26T10:27:53.597Z
Comments.Text: See comments on https://civicrm.stackexchange.com/questions/35979/setting-up-cron-and-civimail
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-06-28T10:07:48.763Z
Comments.Text: Have you tested that this might simply be a permission issue?  I also use the wget cron method using cron.php.  Every time there is a civicrm update, I have to change the permission level in /wp-content/plugins/civicrm/civicrm/bin/cron.php to 744 in order that execution actually takes place.  Just a thought.
Comments.UserDisplayName: peterb
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-06-29T16:38:33.137Z
Comments.Text: Permission was at 644, so I changed it to 744.  However that was not the solution.
Comments.UserDisplayName: Dwight Martino
Tags: <wordpress><civimail><cron-job>
Title: Civimail is not sending scheduled mailings, could it be Cronjob syntax or Bluehost?
ThreadText: # Civimail is not sending scheduled mailings, could it be Cronjob syntax or Bluehost?
  
  (Asked by: username_0 on 2020-06-25)
  
  **Relevant set-up information:**
  
  * Hosting: Bluehost Shared Hosting
  * CMS: WordPress
  * CiviCRM version: 5.25.0
  
  Here's what works:
  
  1. Sending email from via "Contacts > New Mail"
  2. Sending a test mail from "Settings - Outbound Mail"
  3. Sending a test mail from a mailing in CiviMail under "Define Mailing" from the Preview pane
  
  Here's what doesn't work:
  
  1. Sending a scheduled mail via CiviMail's "Review and Schedule", neither in "Send Immediately" nor "Send at:";
  2. Going to Schedule Jobs and hitting Execute Now for Sending Mail;
  
  Now I'm told by the system that Cron jobs are not set up, though I have put one in CPANEL.
  
  Here is my CRON command that is running every 5 minutes:
  
  ```
  wget -O - -q -t 1 'https://<domain>/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=<username>&pass=<password>&key=<sitekey>&job=execute'
  
  ```
  
  The "username" is an Administrator.
  
  Tech support says my Cron jobs are running.
  "Scheduled Jobs Log> Send Scheduled Mailings" states that jobs are getting kicked off
  
  ```
  Entity: job Action: process_mailing
  Summary
  Finished execution of "Send Scheduled Mailings" with result: Success (a:1:{s:9:"processed";i:0;})
  Details
  
  Parameters parsed (and passed to API method): 
  a:1:{s:7:"version";i:3;}
  
  Full message: 
  Finished execution of Send Scheduled Mailings with result: Success (a:1:{s:9:"processed";i:0;})
  
  ```
  
  Despite all this, no mails are showing up in the test groups inboxes.
  
  Is it my Cron job settings? If so, has anyone been able to set up cron jobs effectively in CPANEL for CiviCRM?
  
  **Tags:** wordpress, civimail, cron-job
  
  > **Comments:**
  > **username_1**: See comments on https://civicrm.stackexchange.com/questions/35979/setting-up-cron-and-civimail  
  > **username_2**: Have you tested that this might simply be a permission issue?  I also use the wget cron method using cron.php.  Every time there is a civicrm update, I have to change the permission level in /wp-content/plugins/civicrm/civicrm/bin/cron.php to 744 in order that execution actually takes place.  Just a thought.  
  > **username_0**: Permission was at 644, so I changed it to 744.  However that was not the solution.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2020-07-01. Score: 2
  
  Success, with minor change in syntax I am now able to send schedule mail using Cron jobs to kick off schedule mails. Here is my method for running CiviCRM cron jobs on Bluehost shared hosting every 16 minutes. Previously I had also specified the the parameter job.execute, which I have removed.
  
  ```
  wget -O - -q -t 1 'https://<my-domain>/wp-content/plugins/civicrm/civicrm/bin/cron.php?name=<username>&pass=<password>&key=<sitekey>'
  
  ```
  
  I have scheduled 5 different mailing jobs at 15-60 minute intervals and each has delivered within 3 minutes of scheduled sending. Moreover, my Cron status is "Cron Running OK".
  
  Bluehost does limit the frequency of cron jobs on shared hosting to between 16 and 25 minutes, so cron is kicking off as frequently as possible.
  
  
  ---
  
  ### Answer by username_1 on 2020-06-26. Score: 1
  
  Welcome to SE! If it were working when you use 'Execute now' but not from cron, then I'd look at the cron settings. But in your case 'Execute now' is not producing mails and that does not involve cron.
  
  === edited ===
  
  * Are you using Mosaico and Flexmailer - if so, which versions?
  * What are your settings for outbound mail?
  * At the place where you add recipient groups, how many recipients does it count?
  
  > **Comments:**
  > **username_3**: I agree with the first part from username_1, in that cron is not the problem, but I don't think the question is anything to do with Scheduled Reminders. I just read the question as being about Scheduled Mailings. The log matches what I get for successful operation of the Scheduled Mailing job.  
  > **username_1**: Oops - thanks @username_3!  I'm sure I read 'scheduled reminder' somewhere - must have been pre-coffee! Edited now  
  > **username_0**: I am using FlexMailer 1.1.1, and Mosaico 2.4.1592820024.  Settings - Outbound Mail: [ mail() ]  Recipients:  Somehow the test group was empty.  That would explain a lot.   Now that I have refilled the test group, mailing does function when I go to Schedule Jobs and hit Execute Now for process_mail.   Considering that I'm still getting a "Cron Not Running - No cron runs have been recorded" message, I believe that cron is not kicking off.  Was there something wrong with my syntax?  
  > **username_4**: @username_0 you might want to jump in at chat.civicrm.org about this as well - I and a  fellow admin got some great help from Michael O'Toole recently with setting up cron on Bluehost. A challenge we had is the "jailed shell" that Bluehost allows with cPanel. See https://my.bluehost.com/hosting/help/180 and https://docs.cpanel.net/knowledge-base/accounts/virtfs-jailed-shell/ .  
  
  ---
  
  