X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DataObjects%2FCore_person_signup.php;h=417ea05a1fa823fbdcb706d09bfe001480c8e47c;hb=68ba5ab44c147c86688edcf71275be29e81a189a;hp=5e096786630023fba0dd8d40d9241a20749643b9;hpb=45b5e1c255c25eaba81fcbfdf3cb28162bd0e0d1;p=Pman.Core diff --git a/DataObjects/Core_person_signup.php b/DataObjects/Core_person_signup.php index 5e096786..417ea05a 100644 --- a/DataObjects/Core_person_signup.php +++ b/DataObjects/Core_person_signup.php @@ -96,6 +96,28 @@ class Pman_Core_DataObjects_Core_person_signup extends DB_DataObject function sendVerification($roo) { + $content = array( + 'template' => 'CORE_PERSON_SIGNUP_VERIFICATION', + 'person' => $this, + 'serverName' => $_SERVER['SERVER_NAME'], + 'baseURL' => $roo->baseURL + ); + + $sent = DB_DataObject::factory('core_email')->send($content); + + if(!is_object($sent)){ + return true; + } + + return false; + } + + function getEmailFrom() + { + if (empty($this->name)) { + return $this->email; + } + return '"' . addslashes($this->name) . '" <' . $this->email . '>'; } }