NotifySend.php
authorAlan Knowles <alan@roojs.com>
Sat, 8 Oct 2011 03:35:38 +0000 (11:35 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 8 Oct 2011 03:35:38 +0000 (11:35 +0800)
NotifySend.php

index 3e2151a..33e886a 100644 (file)
@@ -197,9 +197,13 @@ class Pman_Core_NotifySend extends Pman
             if ($res === true) {
                 // success....
                 
+                $ev = $this->addEvent('NOTIFY', $w, 'SUCCESS: ' .$email['headers']['Subject']);
+               
+                
+                
                 $w->sent = date('Y-m-d H:i:s');
                 $w->msgid = $email['headers']['Message-Id'];
-                $w->event_id = -1; // sent ok.. - no need to record it..
+                $w->event_id = $ev->id; // sent ok.. - no need to record it..
                 $w->update($ww);
                 
                 // enable cc in notify..