Sending mail to inbox instead of junk folder

hi
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 = “kirandangol7@hotmail.com”;
$message=“hello”;
$subject = ‘getrein iendk’;
$headers = ‘MIME-Version: 1.0’ . "\r
";
$headers .= ‘Content-type: text/html; charset=iso-8859-1’ . "\r
";
$headers .= ‘From: Kiran <germed.com.np>’ . "\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

Kinan,

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 anonymous@xxxx.xxx as the (sent by:) not (from:) headers.

We now use http://madmimi.com/ for all of our mail delivery services.