【发布时间】:2012-08-28 13:45:21
【问题描述】:
在下面的代码中,当我发送邮件 href 链接显示整个 url 并且不可点击时,如下所示:- 点击以下链接: click here for confirmation 这在本地显示正确,但在服务器上显示不正确。 如果不明白我的意思,请回复。
$key = stripslashes($user->user_activation_key);
$activation_key = base64_encode($key);
$user_id_enc = base64_encode($user_id);
$siteUrl = get_site_url();
$full_Url=$siteUrl.'/test.php?user_id='.$user_id_enc.'&key='.$activation_key;
$message = __('Click on the following link:') . "</br>\r\n";
$message .= sprintf(__('<a href="%s">click here for confirmation</a>'), $full_Url) . "\r\n";
wp_mail($user_email, sprintf(__('[%s] Your confirmatiom'), $blogname), $message);
【问题讨论】:
-
请回复上述问题。如果有人想获得其他详细信息请发表评论。
标签: wordpress sendmail html-email phpmailer