From e44183328ce133f6e6978030a3cf30ab8a518258 Mon Sep 17 00:00:00 2001 From: Andrei Date: Thu, 14 Feb 2013 07:52:45 -0500 Subject: [PATCH] Updated the email text. --- lib/Recovery.class.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/Recovery.class.php b/lib/Recovery.class.php index ba85c90..6a04b17 100644 --- a/lib/Recovery.class.php +++ b/lib/Recovery.class.php @@ -139,7 +139,7 @@ function recover($webid) { $person->load(); $to_name = $person->get_name(); - $from = 'MyProfile Notification System <' . SMTP_USERNAME . '>'; + $from = 'MyProfile Recovery System <' . SMTP_USERNAME . '>'; $to = '"' . $to_name . '" <' . clean_mail($email) . '>'; $subject = 'Instructions to recover your account on '.BASE_URI.'.'; @@ -155,12 +155,14 @@ function recover($webid) { $message = ''; $message .= '

Hello ' . $to_name . ',

'; $message .= '

You have requested to recover your personal account on '.BASE_URI.'. '; - $message .= 'Please click this link to proceed.

'; - $message .= '

Alternatively, you can manually use the recovery code at this page: '; - $message .= ''.BASE_URI.'/recovery.

'; - $message .= '

Your code is: '.$hash.'

'; + $message .= 'Please click ' . BASE_URI . '/recovery?recovery_code='.$hash.' to proceed.

'; + $message .= '

Alternatively, you can recover your account by visiting this page: '.BASE_URI.'/recovery and typing or pasting the following recovery code:

'; + $message .= '

'; + $message .= ''.$hash.' '; + $message .= '

'; + $message .= '

Important! Do not forget that once you are logged in, you can obtain a new certificate by going to your profile page and then clicking on the "Certificate" icon under "Actions for this profile".

'; $message .= '


'; - $message .= '

You do not need to respond to this automated email.

'; + $message .= '

This is an automated email generate by MyProfile and you do not need to respond to it.

'; $message .= ''; $crlf = "\n"; $mime = new Mail_Mime(array('eol' => $crlf));