$next_try_min = floor((time() - strtotime($last_event)) / 60) * 2;
}
$next_try = $next_try_min . ' MINUTES';
-
+
// this may modify $p->email. (it will not update it though)
- $email = $this->makeEmail($o, $p, $last, $w);
+ $email = $this->makeEmail($o, $p, $last, $w, $force);
if ($email === true) {
if ($res === true) {
// success....
- $ev = $this->addEvent('NOTIFY', $w, 'SUCCESS: ' .$email['headers']['Subject']);
+ $ev = $this->addEvent('NOTIFYSENT', $w, "{$w->to_email} - {$email['headers']['Subject']}");
}
**/
- function makeEmail($object, $rcpt, $last_sent_date, $notify)
+ function makeEmail($object, $rcpt, $last_sent_date, $notify, $force =false)
{
- return $object->toEmail($rcpt, $last_sent_date, $notify);
+ return $object->toEmail($rcpt, $last_sent_date, $notify, $force);
}
function debug($str)