I am sending a reply mail using PHP to those who send a mail to me.
My problem is when I send an email, it sits in the spam folder. What do I do in order to deliver mail correctly. What should I do?
My code
<?php
$email_id="welcome@gmail.com";
$recipient = "@gmail.com"; //Recipient
$mail_body = $message; //Mail body
$subject = "Subject ".$Name.""; //Subject
$header = "From: ". $Name . " <" . $email . ">\r\n"; //Optional headerfields
$header .='Content-type: text/plain; charset=utf-8'."\r\n";
mail($recipient, $subject, $mail_body, $header); /mail command :)
?>