/** * @param <array of strings> comma separated recipient addresses * @return array error flag and message */ protected function checkDoNotEmailFields(InlineEmail $eml) { if (Yii::app()->settings->x2FlowRespectsDoNotEmail && !$eml->checkDoNotEmailFields()) { return array(false, Yii::t('studio', 'Email could not be sent because at least one of the ' . 'addressees has their "Do not email" attribute checked')); } return array(true, ''); }