// this may modify $p->email. (it will not update it though)
$email = $this->makeEmail($o, $p, $last, $w, $force);
- print_r("\n");exit;
-
+ exit;
if ($email === true) {
$ev = $this->addEvent('NOTIFY', $w,
function makeEmail($object, $rcpt, $last_sent_date, $notify, $force =false)
{
$m = 'notify'. $notify->evtype;
- print_r($m);
//var_dump($m);
if (!empty($notify->evtype) && method_exists($object,$m)) {
- print_r('aa');
return $object->$m($rcpt, $last_sent_date, $notify, $force);
}
- print_r('bb');
+
if (!method_exists($object, 'toEmail')) {
//var_Dump($object);
//exit;