Skip to content

mailing_all ​

php
array|boolean mailing_all ( number $shipmentId, [array $period] )

Returns status information for all addresses included in the mailing. If the second parameter is "array($from, $to)", where $from and $to are Unix timestamps, returns addresses and their statuses for mailings in that period. Returns false if no mailing exists with the specified ID or within the specified time range.

The returned array is indexed by email address. Each record contains:

  • 0 - Whether the message was sent
  • 1 - Whether the message bounced
  • 2 - Whether the message was opened
  • 3 - Whether a link was clicked
  • 4 - Whether the recipient unsubscribed
  • 5 - Bounce code

Example:

php
$get_info = mailing_all(31);
print_r($get_info);

Result:

Array
(
    [test@gmail.pl] => Array
        (
            [0] => 1
            [1] => 0
            [2] => 1
            [3] => 0
            [4] => 0
            [5] => 0
        )

    [test2@gmail.pl] => Array
        (
            [0] => 1
            [1] => 0
            [2] => 1
            [3] => 1
            [4] => 0
            [5] => 0
        )
)