pkrishna42 Posted September 5, 2017 Share Posted September 5, 2017 How to remove MIME VERSION from header of mail sent from my website. my code goes as below $headers = 'From: ' . strip_tags($_POST['Name']) .''; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\n"; IN HEADER OF MY MAIL IT LOOKS LIKE THIS PrashanthMIME-Version: <1.0@p3plcpnl0914.prod.phx3.secureserver.net> Please suggest me Quote Link to comment Share on other sites More sharing options...
requinix Posted September 5, 2017 Share Posted September 5, 2017 You're missing a \n to separate the From and MIME-Version headers. Don't build emails yourself. Use something like PHPMailer. Quote Link to comment Share on other sites More sharing options...
HashSoftwares Posted September 6, 2017 Share Posted September 6, 2017 Make sure you enclose \n in double quotes (not single quotes!) and put a space in it so that PHP can translate that into the correct linefeed code Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.