This question already has an answer here:
My mail go to spam instead of inbox using PHP.I want to go mail to inbox.Anybody have any solution for these issue?
My header code is given beow.
$header_mail="select * from mail_header";
$header_mail2=mysql_query($header_mail);
$fet=mysql_fetch_array($header_mail2);
$content=$fet['content'];
$Headers = "From:$content
" .
"Reply-To: $content
" .
"Content-type: text/html; charset=UTF-8
";
$Headers.= "MIME-version: 1.0
";
$Headers.= "Content-type: text/html; charset= iso-8859-1
";
</div>
use smtp authentication. Follow the link for full source code
There is multiple cases for the span mailer. Please find below the things which would be useful to find out problem:
Check your mail body
Avoid sending attachments other than pdf, gif, jpg and png
Check your Domain Name Server (DNS) configuration
Customize your messages
Thanks
full details of how to avoid mails go to spam.please follows the given links:
http://www.velvetblues.com/web-development-blog/avoid-spam-filters-with-php-mail-emails/
Prevent sent emails treated as junk mails using php mail function