// this may modify $p->email. (it will not update it though)
$email = $this->makeEmail($o, $p, $last, $w, $force);
// this may modify $p->email. (it will not update it though)
$email = $this->makeEmail($o, $p, $last, $w, $force);
function makeEmail($object, $rcpt, $last_sent_date, $notify, $force =false)
{
$m = 'notify'. $notify->evtype;
function makeEmail($object, $rcpt, $last_sent_date, $notify, $force =false)
{
$m = 'notify'. $notify->evtype;
return $object->$m($rcpt, $last_sent_date, $notify, $force);
}
return $object->$m($rcpt, $last_sent_date, $notify, $force);
}