check file exists
[Pman.Core] / NotifySend.php
index 763c7b8..91afa5a 100644 (file)
@@ -289,8 +289,8 @@ class Pman_Core_NotifySend extends Pman
         
         $ff = HTML_FlexyFramework::get();
         
-        
-        $dom = array_pop(explode('@', $p->email));
+        $explode_email = explode('@', $p->email);
+        $dom = array_pop($explode_email);
         
         $mxs = $this->mxs($dom);
         $ww = clone($w);
@@ -462,7 +462,7 @@ class Pman_Core_NotifySend extends Pman
                 $ev = $this->addEvent($successEventName, $w, "{$w->to_email} - {$email['headers']['Subject']}");
                 
                 $ev->writeEventLog($this->debug_str);
-                print_R('test??');exit;
+                
                 if(strtotime($w->act_when) > strtotime("NOW")){
                     $w->act_when = date('Y-m-d H:i:s');
                 }