Skip to content

campaign_all ​

php
array|boolean campaign_all ( number $campaignId )

Returns status information for all addresses included in the selected campaign. Assign a mailing to a campaign in step 3 of sending a mailing. To find the campaign ID, open Reports > Campaigns and click “details” for that campaign in the table.

The returned array is indexed by email address. Each element contains a six-element array:

  • [0] - Whether the message was sent
  • [1] - Whether the message bounced
  • [2] - Whether the message was received, clicked and the recipient unsubscribed
  • [3] - Whether a link was clicked
  • [4] - Whether the recipient unsubscribed
  • [5] - BOUNCE
Each of the above indexes contains a value of 0 or 1.

Example:

php
$campaignAll = campaign_all(1);
print_r($campaignAll);

Result:

Array
(
    [j.doe+1@sare.pl] => Array
        (
            [0] => 1
            [1] => 0
            [2] => 0
            [3] => 0
            [4] => 0
            [5] => 0
        )

    [j.doe@sare.pl] => Array
        (
            [0] => 1
            [1] => 0
            [2] => 0
            [3] => 0
            [4] => 0
            [5] => 0
        )

    [example@email.com] => Array
        (
            [0] => 1
            [1] => 0
            [2] => 0
            [3] => 0
            [4] => 0
            [5] => 0
        )

)