Not able to send links in email after setting header
Nothing is wrong with the code. I just added message body in stripslashes() add_action(‘wp_ajax_mail_link_popup’,’mail_link_popup’); function mail_link_popup() { $headers=”Content-type: text/html;charset=utf-8″; wp_mail($_REQUEST[‘to_email’],$_REQUEST[‘subject’],stripslashes($_REQUEST[‘message_test’]),$headers); } And it’s working now