Answers.Body: <p>I found the problem. There was a breaking change in CiviCRM over the past year. We were just using the access CiviMail permission for the wordpress user used for sending bulk mail. But it turns out you now need 3 permissions. (I found this in a 3 year old forum posting.)</p>
  
  <p>CiviCRM: view all contacts
  CiviCRM: access CiviCRM
  CiviMail: access CiviMail</p>
  
  <p>Both of the following cron job commands work now. cli.php still works contrary to what I posted before -- and this is the easiest to use since you don't have to learn and install SSH or wp-cli.phar. Our wordpress system is on inexpensive shared hosting.</p>
  
  <pre><code>/usr/local/bin/php -d extension=phar.so /home/example/wp-cli.phar --user=CiviMailUser --url=http://example.org --path=/home/example/public_html civicrm process-mail-queue job.execute auth=0
  
  
  
  /usr/local/bin/php -q /home/example/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php -j -s example.org -u CiviMailUser -p password -e Job -a process_mailing
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-09T16:57:31.893Z
Answers.LastActivityDate: 2016-04-09T16:57:31.893Z
Answers.UserDisplayName: P a u l
Body: <p>Do you have a CiviCRM installation with bulk email working on the latest wordpress and CiviCRM 4.7.x, using a cron job set up in cPanel? I have been unable to get cli.php or wp-cli.php to work recently. The cron job fires without error but no email is sent. Cli.php with cron was working up to about 6 months ago or so, but we made the rookie mistake of upgrading CiviCRM... We would appreciate a step by step recipe to get this working again.</p>
  
Tags: <civimail><cron-job><4.7>
Title: Does anyone have a working example for CiviMail bulk emails on Wordpress and 4.7.x
ThreadText: # Does anyone have a working example for CiviMail bulk emails on Wordpress and 4.7.x
  
  (Asked by: username_0 on 2016-04-08)
  
  Do you have a CiviCRM installation with bulk email working on the latest wordpress and CiviCRM 4.7.x, using a cron job set up in cPanel? I have been unable to get cli.php or wp-cli.php to work recently. The cron job fires without error but no email is sent. Cli.php with cron was working up to about 6 months ago or so, but we made the rookie mistake of upgrading CiviCRM... We would appreciate a step by step recipe to get this working again.
  
  **Tags:** civimail, cron-job, 4.7
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-04-09. Score: 3 | Accepted answer
  
  I found the problem. There was a breaking change in CiviCRM over the past year. We were just using the access CiviMail permission for the wordpress user used for sending bulk mail. But it turns out you now need 3 permissions. (I found this in a 3 year old forum posting.)
  CiviCRM: view all contacts
  CiviCRM: access CiviCRM
  CiviMail: access CiviMail
  Both of the following cron job commands work now. cli.php still works contrary to what I posted before -- and this is the easiest to use since you don't have to learn and install SSH or wp-cli.phar. Our wordpress system is on inexpensive shared hosting.
  /usr/local/bin/php -d extension=phar.so /home/example/wp-cli.phar --user=CiviMailUser --url=http://example.org --path=/home/example/public_html civicrm process-mail-queue job.execute auth=0
  
  
  
  /usr/local/bin/php -q /home/example/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php -j -s example.org -u CiviMailUser -p password -e Job -a process_mailing
  
  
  ---
  
  