Skip to content

Instantly share code, notes, and snippets.

@radheymkumar
Created November 29, 2018 10:22
Show Gist options
  • Save radheymkumar/6d4587b8e8f0b11b728a99cc15a31b3e to your computer and use it in GitHub Desktop.
Save radheymkumar/6d4587b8e8f0b11b728a99cc15a31b3e to your computer and use it in GitHub Desktop.
Password recovery link
function common_mail_alter(&$message) {
if ($message['id'] == 'user_password_reset') {
$message['headers']['Content-Type'] = 'text/html; charset=UTF-8; format=flowed; delsp=yes';
}
}
/* Password recovery */
<a href='[user:one-time-login-url]' target="_blank">Generate/Reset Password</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment