Skip to content

Commit

Permalink
Merge branch 'master' of github.com:MyProfile/myprofile
Browse files Browse the repository at this point in the history
  • Loading branch information
deiu committed May 13, 2013
2 parents 785ffb3 + e441833 commit 36bf7a8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/Recovery.class.php
Expand Up @@ -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.'.';

Expand All @@ -155,12 +155,14 @@ function recover($webid) {
$message = '<html><body>';
$message .= '<p>Hello ' . $to_name . ',</p>';
$message .= '<p>You have requested to recover your personal account on '.BASE_URI.'. ';
$message .= 'Please click <a href="' . BASE_URI . '/recovery?recovery_code='.$hash.'">this link</a> to proceed.</p>';
$message .= '<p>Alternatively, you can manually use the recovery code at this page: ';
$message .= '<a href="'.BASE_URI.'/recovery">'.BASE_URI.'/recovery</a>.</p>';
$message .= '<p>Your code is: <strong>'.$hash.'</strong></p>';
$message .= 'Please click <a href="' . BASE_URI . '/recovery?recovery_code='.$hash.'">' . BASE_URI . '/recovery?recovery_code='.$hash.'</a> to proceed.</p>';
$message .= '<p>Alternatively, you can recover your account by visiting this page: <a href="'.BASE_URI.'/recovery">'.BASE_URI.'/recovery</a> and typing or pasting the following recovery code:</p>';
$message .= '<p>';
$message .= '<strong>'.$hash.'</strong> ';
$message .= '</p>';
$message .= '<p>Important! Do not forget that once you are logged in, you can obtain a new certificate by going to your <a href="https://my-profile.eu/view">profile page</a> and then clicking on the "Certificate" icon under "Actions for this profile".</p>';
$message .= '<br /><p><hr /></p>';
$message .= '<p><small>You do not need to respond to this automated email.</small></p>';
$message .= '<p><small>This is an automated email generate by <a href="https://my-profile.eu/">MyProfile</a> and you do not need to respond to it.</small></p>';
$message .= '</body></html>';
$crlf = "\n";
$mime = new Mail_Mime(array('eol' => $crlf));
Expand Down

0 comments on commit 36bf7a8

Please sign in to comment.