Skip to content

mailing_total_opted_out ​

php
number mailing_total_opted_out ( number|array $shipmentId [number $shipmentIdMax] )

Returns the number of addresses that unsubscribed during the selected mailings.

Arguments: $shipmentId - one mailing ID or an array of selected mailing IDs. $shipmentIdMax - if provided, defines the mailing range from $shipmentId to $shipmentIdMax.

Example:

php
print_r(mailing_total_opted_out(1))

Result:

4