// }
// }
- function sendVerification()
+ function sendVerification($roo)
{
$content = array(
- 'template' => 'CORE_PERSON_SIGNUP_CONFIRM',
+ 'template' => 'CORE_PERSON_SIGNUP_VERIFICATION',
+ 'person' => $this,
+ 'serverName' => $_SERVER['SERVER_NAME'],
+ 'baseURL' => $roo->baseURL
);
$sent = DB_DataObject::factory('core_email')->send($content);
return false;
}
+
+ function getEmailFrom()
+ {
+ if (empty($this->name)) {
+ return $this->email;
+ }
+ return '"' . addslashes($this->name) . '" <' . $this->email . '>';
+ }
}