Mail sending to inbox

hello friend ,
I am facing a big issue from last two days while i am sending mail from php program its going to the junk mail why… i dont know i google for this issues and applied so many thing then also going to junk or spam please help me to send the mails in inbox
this is my header section code please tell any way…

$headers .= ‘MIME-Version: 1.0’ . "
";
$headers .= ‘Content-type: text/html; charset=iso-8859-1’ . "\r
";
$headers .= "From: My site<denniissac@example.com>\r
";
$headers .= "Reply-To: info@my_site.com\r
";
$headers .= "Return-Path: info@my_site.com\r
";
$headers .= ‘X-Mailer: PHP/’ . phpversion();

Well, if you know how spam filters work you can change the contents of your e-mails accordingly, to avoid them getting caught by spam filters.

The sender policy framework is something you can setup in your DNS to indicate that a specific IP is allowed to send e-mails for e specific domain, which helps in that it indicates to spam filters that the origin of the e-mail is OK.

The headers of your e-mail have little (to nothing) to do with it. Although you may want to consider sending plain text and html in the same e-mail, as spam filters are not keen on html-only e-mails. You can do this using multipart/alternative.

ya i am using html tags i need to send picture message in that … its one part i tried with a simple text sending that also going to junk see the code i have attached below

       $headers1 = "MIME-Version: 1.0\\r\

";
$headers1 .= "Content-type: text/html; charset=iso-8859-1\r
";
$headers1 .= "From: confirm-denni@example.com\r
";
$to = $_POST[‘mail’];
$subject =$_POST[‘subject’];
$message =‘Dear ‘;
$message.=’<p>Customer</p>’;
$message.=‘<p>ho lord</p>’;
if(mail($to,$subject,$message,$headers1))
{
echo “mail sented”;
}

I don’t see an image in your code? Also, images in e-mails with little text tend to make spam filters suspicious.

Have read all the other things I suggested? Look at how spam filters think, using Sender Policy Framework and multipart/alternative?

hey friend i am not understanding this all pls help me in any other way…

You may want to take a look at how spam filters think and the [URL=“http://www.openspf.org/”]Sender Policy Framework (SPF)

:slight_smile: