shadiadiph Posted December 15, 2008 Share Posted December 15, 2008 I am using a sendmail script why do 90% of my messages go to SPAM? Is there anyway of stop this happening? Link to comment https://forums.phpfreaks.com/topic/137043-how-to-stop-sendmail-going-to-spam/ Share on other sites More sharing options...
tomfmason Posted December 15, 2008 Share Posted December 15, 2008 You need an spf record in your dns. I use something like this for one of my domains using gmail: domain.tld. IN TXT "v=spf1 include:aspmx.googlemail.com ~all" Link to comment https://forums.phpfreaks.com/topic/137043-how-to-stop-sendmail-going-to-spam/#findComment-715746 Share on other sites More sharing options...
shadiadiph Posted December 16, 2008 Author Share Posted December 16, 2008 i understand that but do i have to add anything to my send mail headers?? $to = "<$clemail>, <[email protected]>"; $MsgHeader = "Subject: $subject <$subject>\r\n"; $MsgHeader = "From: Asia Pacific Advisors <$ademail>\r\n"; $MsgHeader .= "MIME-Version: 1.0\r\n"; $MsgHeader .= "Content-type: text/html; charset=iso-8859-1"; $MsgBody = " Link to comment https://forums.phpfreaks.com/topic/137043-how-to-stop-sendmail-going-to-spam/#findComment-716994 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.