function notify($from, $to, $message) { mail_notify_message($message, $from, $to); // XXX: Jabber, SMS notifications... probably queued }
function notify() { $from = User::staticGet('id', $this->from_profile); $to = User::staticGet('id', $this->to_profile); mail_notify_message($this, $from, $to); }