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) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • How to specify the recipients for a new mailing, and initiate send?
Pages: 1 [2]

Author Topic: How to specify the recipients for a new mailing, and initiate send?  (Read 1845 times)

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: How to specify the recipients for a new mailing, and initiate send?
February 19, 2015, 10:04:13 am
Quote from: rivimey on February 19, 2015, 07:41:04 am
IMO the line at api/v3/Mailing.php:66 should be deleted. It is not helpful at all.
  $params['api.mailing_job.create']['api.default'] = 1;

I had the same experience and removed it for the next major release (4.6) -- https://github.com/totten/civicrm-core/commit/5f44574930fe4863878a05e99a6d2de4fa60daf6 . You could try removing it locally. For making changes to a past major release (4.4), it's better to talk to the LTS folks ( http://forum.civicrm.org/index.php/board,81.0.html ). I'll ping a couple of people from LTS to see if they can respond here; otherwise, you might try posting in the LTS forum.

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: How to specify the recipients for a new mailing, and initiate send?
February 19, 2015, 12:05:43 pm
Does overriding the API default (set api.mailing_job.create to 0) as discussed above not do it for you in 4.4?

rvimey is the forum here stripping all the square brackets from your code?
@xurizaemon ● www.fuzion.co.nz

rivimey

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: How to specify the recipients for a new mailing, and initiate send?
February 19, 2015, 03:59:50 pm
Hi Chris, I have tried that setting but it is ignored, as best as I can tell.

I am unsure what you were meaning about brackets.. perhaps you hadn't realised my client code is in python?

rivimey

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.4
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: How to specify the recipients for a new mailing, and initiate send?
February 19, 2015, 04:03:41 pm
Hi Tim,

There are other reasons (e.g. the revamped mail coe) why we were already thinking of 4.6; knowing that removing that line is a reasonable option is very helpful.

Is there an eta for the 4.6 release?

Ruth

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: How to specify the recipients for a new mailing, and initiate send?
February 19, 2015, 04:11:05 pm
nganivet (Cividesk) from the LTS team has submitted a patch to remove the chained API call from the next version of 4.4 ( https://github.com/civicrm/civicrm-core/pull/5199 ). That page will show results from the automated test suite. (If it the automated tests fail, there's a good chance it's because of issues in the tests -- that was my experience when patching 4.6.) Regardless, it would be quite helpful if some of the folks who use Mailing API on 4.4 could try out the change and report success/failure. (If this patch does it, awesome. If there are more issues with Mailing API, prob not worth fixing in 4.4 unless someone volunteers.)

Re: 4.6 timeline - we're trying to end the alpha cycle soon, so it'll probably be in beta within a few weeks. After that, there's usually a few beta iterations spread out over several weeks.

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: How to specify the recipients for a new mailing, and initiate send?
February 19, 2015, 04:14:10 pm
Quote from: rivimey on February 19, 2015, 03:59:50 pm
I am unsure what you were meaning about brackets.. perhaps you hadn't realised my client code is in python?

Yep I spotted that it's in python, just didn't recognise the syntax used for dictionary keys here.
@xurizaemon ● www.fuzion.co.nz

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • How to specify the recipients for a new mailing, and initiate send?

This forum was archived on 2017-11-26.