Closed xianx closed 8 years ago
Hi @xianx, what does your template code look like for that link?
How you've used content
in your template? If you want to substitute without escaping content, you need to use {{{content}}}
(note 3 curly braces) instead of {{content}}
.
@yargevad I have already included screenshot http://prnt.sc/az7u4c
Let me explain more clearly. That screenshot shows a rendered template. I'm interested in what the source of your template looks like, including all of the curly braces, like @rajumsys shows above.
I have just tested that when ever 2 curly bracket is using Forget link is sending but link tracking and line breaks are not working.
I'm having this issue as well. My template is using the triple braced {{{content}}}
- I think it has something to do with the formatting of the WordPress password reset message that is generated by WP core, shown here:
My temporary work-around is to override that message with a custom filter:
/* Edit the Lost Password Email */
function sparkpost_retrieve_password_message( $message, $key, $user_login, $user_data ) {
$message = __('Someone has requested a password reset for the following account:') . "<br /><br />";
$message .= network_home_url( '/' ) . "<br /><br />";
$message .= sprintf(__('Username: %s'), $user_login) . "<br /><br />";
$message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "<br /><br />";
$message .= __('To reset your password, visit the following address:') . "<br /><br />";
$message .= network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login');
return $message;
}
add_filter('retrieve_password_message', 'sparkpost_retrieve_password_message', 10, 4);
@rajumsys this appears to still an issue in 3.0.1, especially with gmail clients or Google Apps for work.
Can this be included in the 3.1 release?
Just noticed that When ever user request reset password via /wp-login.php?action=lostpassword form forget password link is not sending via email when using template. http://prntscr.com/az7u4c
I have tested without template, its fine. http://prntscr.com/az7w1t
How to fix the problem?