DataObjects/Core_person_signup.php
[Pman.Core] / DataObjects / Core_person_signup.php
index fb58c66..3b66708 100644 (file)
@@ -93,11 +93,11 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
 //        }
 //    }
 
-    function sendVerification($roo)
+    function sendVerification($template, $roo)
     {
         
         $content = array(
-            'template'      => 'CORE_PERSON_SIGNUP_VERIFICATION',
+            'template'      => $template,
             'person'        => $this,
             'serverName'    => $_SERVER['SERVER_NAME'],
             'baseURL'       => $roo->baseURL
@@ -111,5 +111,13 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject
         
         return false;
     }
+    
+    function getEmailFrom()
+    {
+        if (empty($this->name)) {
+            return $this->email;
+        }
+        return '"' . addslashes($this->name) . '" <' . $this->email . '>';
+    }
 }