Occasionally, the customer fails to do this correctly resulting in the message, "Error: The password reset link was not found in our records, please try again by generating a new link." Of course, the customer might give up, never to return, in which case we are then unaware or they contact us. Both are undesirable but we have lived with it for years but we've had 2 contacts from customers yesterday about this so have been motivated to change it so the URL is a clickable link.
This requires a file change.
Change this:
https://github.com/CE-PhoenixCart/Phoen ... en.php#L25
to this:
Code: Select all
const EMAIL_PASSWORD_RESET_BODY =
'A new password has been requested for your profile at ' . STORE_NAME . '.' . "\n\n" .
'Please follow this personal link to securely change your password:' . "\n\n" .
'<a href="%1$s">%1$s</a>' . "\n\n" .
'This link will be automatically discarded after 24 hours or after your password has been changed.' . "\n\n" .
'For help with any of our online services, please e-mail the store-owner: ' .
'<a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">' . STORE_OWNER_EMAIL_ADDRESS . '</a>.' . "\n\n";Further caveats:
- Configuration > Email Options > Use MIME HTML When Sending Emails needs to be true to send emails using HTML.
- A very few email clients won't render HTML so the URL will still not be clickable.