Sending mail to inbox instead of junk folder

i have used lots of sending mail codes but none of them have worked
i code will send the emails to junk
i have code which will send to junk but i need to sent it in inbox can someone help me

$to = “”;
$subject = ‘getrein iendk’;
$headers = ‘MIME-Version: 1.0’ . "\r
$headers .= ‘Content-type: text/html; charset=iso-8859-1’ . "\r
$headers .= ‘From: Kiran <>’ . "\r
mail($to, $subject, $message, $headers);

In order to answer your question you need to know how spam filters think.
Also, what have you tried yourself? For example, do you have SPF set up?
Do you send plain text? HTML? A mix of both? (hint: the last option is best)

sorry i can’t understand what you have answered. please could you explain me in detail


Use an outside mailing service, there are too many spam issues that arise. I.E a mail server will reject you if there is no reverse look up, or if you are unable to send them the same message in one minute. Even better is getting stuck with qmail and mail servers blocking anything from as the (sent by:) not (from:) headers.

We now use for all of our mail delivery services.