die("send repeat to early\n");
}
+ if (!empty($opts['debug'])) {
+ print_r($w);
+ }
+
if (!$force && !empty($w->msgid)) {
$ww = clone($w);
// try again later..
// check last event for this item..
-
+ //print_r($res);
$this->addEvent('NOTIFY', $w, 'GREYLISTED ' . $p->email . ' ' . $res->toString());
$w->act_when = date('Y-m-d H:i:s', strtotime('NOW + ' . $retry . ' MINUTES'));
$w->update($ww);
function makeEmail($object, $rcpt, $last_sent_date, $notify, $force =false)
{
$m = 'notify'. $notify->evtype;
- if (!empty($notify->evtype) && method_exists($object,'notify'. $notify->evtype)) {
- $object->$m($rcpt, $last_sent_date, $notify, $force)
+ var_dump($m);
+
+ if (!empty($notify->evtype) && method_exists($object,$m)) {
+ return $object->$m($rcpt, $last_sent_date, $notify, $force);
}
}
echo $str . "\n";
}
-
+ function output()
+ {
+ die("done\n");
+ }
}
\ No newline at end of file