/**
  * Sends an email to the user with a link to confirm a change of email address
  * @param User $account
  * @param string hash returned by a call to SaveRequestedEmail() $confirmation_hash
  * @return bool
  */
 public function SendChangeEmailAddressEmail(User $account, $confirmation_hash)
 {
     # send email requesting confirmation - validates email address
     require_once 'Zend/Mail.php';
     $o_email = new Zend_Mail('UTF-8');
     $o_email->addTo($account->GetRequestedEmail());
     $o_email->setSubject($this->GetSettings()->GetSiteName() . ' - please confirm your email address');
     $o_email->setFrom($this->GetSettings()->GetEmailAddress(), $this->GetSettings()->GetSiteName());
     $s_greeting = $account->GetName() ? $account->GetName() : 'there';
     $s_confirm_url = 'https://' . $this->GetSettings()->GetDomain() . $this->GetSettings()->GetUrl('AccountConfirmEmail') . '?p=' . $account->GetId() . '&c=' . urlencode($confirmation_hash);
     $o_email->setBodyText('Hi ' . $s_greeting . "!\n\n" . wordwrap("Please confirm you'd like to use this email address, " . $account->GetRequestedEmail() . ", to sign in to " . $this->GetSettings()->GetSiteName() . " by clicking on the following link, or copying it into your web browser: ", 72, "\n") . "\n\n" . $s_confirm_url . $this->GetSettings()->GetEmailSignature() . "\n\n" . wordwrap('(You are receiving this email because a request to register this email address was made on the ' . $this->GetSettings()->GetSiteName() . " website. If you did not request this email, please ignore it. " . "You will not get any more emails.)", 72, "\n"));
     try {
         $o_email->send();
         return true;
     } catch (Zend_Mail_Transport_Exception $e) {
         return false;
     }
 }