How to add a hyperlink to the email content in WordPress?

function set_contenttype($content_type){
    return 'text/html';
}
add_filter('wp_mail_content_type','set_contenttype');
if ( $message && !wp_mail($user_email, $title, nl2br($message), $headers) )

You should set the mail content type as “text/html”.

tech