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);
+ $m = 'notify'. $notify->evtype;
+ if (!empty($notify->evtype) && method_exists($object,'notify'. $notify->evtype)) {
+ $object->$m($rcpt, $last_sent_date, $notify, $force);
+ }
+
+
+ return $object->toEmail($rcpt, $last_sent_date, $notify, $force);
}
function debug($str)