Php contact form keeps going to spam and has an html attachement -


i experiencing problem php contact form normal use on our products sites.

    <?php      $to = "martin@puritech.co.za";     $subject = "reverse osmosis";      $name = $_post['name'];     $email = $_post['email'];     $number = $_post['tel'];     $mail = $_post['message'];      $headers = "from: $name \r\n";     $headers .= "email: $email \r\n";     $headers .= "mime-version: 1.0 \r\n";     $headers .= "content-type: text/html charset=iso-8859-1 \r\n";      $message = "<html><body style='font-family: arial;'>";     $message .= "<h1>hello guys! have request ".$name."</h1>";     $message .= "<p>".$mail."</p>";     $message .= "<p><span style='font-weight:bold;'>from:</span> ".$name."</p>";     $message .= "<span style='font-weight:bold;'>email:</span> ".$email."</p>";     $message .= "<span style='font-weight:bold;'>contact number:</span> ".$number."</p>";     $message .= "</body></html>";      $send = mail ($to, $subject, $message, $headers);      if ($send==true) {         header('location: ../index.html');         exit;     }else {?>         <script type="text/javascript">             alert('please check details , resend. thank you.');             window.location = '../index.html';         </script> <?php     } ?> 

when click on send button, mail goes straight spam , has html doc attachment.

how fix this? draining me , starting annoy me.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -