Skip to content

mailing_open_reach ​

php
array|boolean mailing_open_reach ( number|array $shipmentId [[number|boolean $shipmentIdMax=false], boolean $transactional = false] )

Returns the ratio of opens to delivered emails for the selected mailings, as a number from 0 to 1.

Arguments: $shipmentId - one mailing ID or an array of selected mailing IDs. $shipmentIdMax - if provided, defines the mailing range from $shipmentId to $shipmentIdMax. $transactional - whether to include transactional or regular mailings in the calculation.

Example:

php
print_r(mailing_open_reach(5))

Result:

0,667