HI. I am trying to make a script and I'm having some problem. I'm sending HTML email and therefore trying to send the proper headers. But somehow its not working. The headers are not passed as they are supposed to be passed.The email is not in HTML and also the sender is not the one which I stored in $reg. here is the code: $from1 = "MIME-Version: 1.0\n"; $from1 .= "Content-type: text/html; charset=iso-8859-1\n"; $from1 .= "From: ".$reg."\n"; $from1 .= "Reply-To: ".$reg."\n"; Code (markup): And here is the command to send email: mail($_POST['email'], $subject, $mess, $from1); //Message to applicant. Code (markup): Please help me. Thanks!
Do not do this in this manner, unless you like having your server send spam. Or maybe you're a spammer anyway...
Then What is the correct method? I'm building a script for the first time and don't have that much experience!