I have the GoDaddy hosting and send mail using the following code: $to = demomail@gmail.com; $subject = Test mail; $message = Hello! This is a simple email message.; $from = info@brightmeup.com; $headers = From: . $from; mail($to,$subject,$message,$headers); echo Mail Sent.;When the mail arrives at its destination I see the following (in red outline)I don't want to show the via server and for that there is an option to add a SPF record. To do this I have followed the instructions in this page:Managing DNS for Your Domain Names but it's not working.After that i have tried:v=spf1 include:_spf.google.com ~all as described in http://support.google.com/a/bin/answer.py?hl=en&answer=178723 but I still get the same result.How can I solve this and prevent via server showing?
Adding SPF records in GoDaddy
email;godaddy
Your spf line is wrong, let's break it down:v=spf1Version 1 SPF, everything right there, let's see the next parameters:include:_spf.google.comHere you're specifying that your mail is valid if you're sending it from a Google Apps domain. Are you using Google Apps?, the next parameter:~allDenies every other domain, so if you send from a non Google Apps domain, you'll be invalid in terms of SPF. You must change your include parameter to point to your sending server (probably something like include:spf.secureserver.net inferring from the image you posted).Also, see ceejayoz response respecting DKIM. I forgot that for a non Google Apps Domain you have to include that.