MTrackWeb/Cron/Notify.php
authorAlan Knowles <alan@akbkhome.com>
Sun, 27 Mar 2011 05:10:18 +0000 (13:10 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 27 Mar 2011 05:10:18 +0000 (13:10 +0800)
MTrackWeb/Cron/Notify.php

index cf2e72f..e1178f1 100644 (file)
@@ -107,19 +107,22 @@ class MTrackWeb_Cron_Notify extends MTrackWeb
      *   - to user...
      *   
      */
-    function calcAddress($items, $user) {
+    function calcAddress($changes, $user) {
+        $ff = HTML_FlexyFramework::get();
+     
         
         $headers['To'] = '"'. addslashes($user->name). '" <' . $user->email .'>';
-        $headers['From'] = make_email($from[0][0], $from[0][1]);
+        $headers['From'] = $ff->MTrack['email_address'];
+        
         //if (count($from) > 1) {
         //    $rep = array();
         //    array_shift($from);
          //       foreach ($from as $email) {
          // $rep[] = make_email($email[0], $email[1]);
         // }
-        //$headers['Reply-To'] = join(', ', $rep);
+        $headers['Reply-To'] =  $ff->MTrack['email_address'];
         //}
-        
+        return $headers;
     }
     
     /**