Skip to content

mailing_bounced_status ​

php
mixed

mailing_bounced_status(string $email, number $nr_wysylki [, number $nr_wysylki_max])

When called with a single mailing parameter, returns the numeric bounce code for the message sent to the current email address in mailing $nr_wysylki. Returns 0 if no bounce was recorded.

If the second mailing parameter is also provided, searches mailings from $nr_wysyłki to $nr_wysyłki_max and returns an array indexed by mailing ID, with bounce codes as values. If no bounce was recorded for $email within that mailing range, the returned array is empty (contains zero elements).

Warning

Requires an address context.

Only non-archived mailings are included.

Example:

php
print_r(mailing_bounced_status('my_mail@gmail.com', 1400, 1480));

Result:

Array
(
[1458] => 511
[1471] => 511
[1479] => 511
)