Adding SPF records in GoDaddy

Posted by Mayank swami on Pro Webmasters See other posts from Pro Webmasters or by Mayank swami
Published on 2012-08-29T17:14:54Z Indexed on 2012/08/30 3:49 UTC
Read the original article Hit count: 288

Filed under:

I have the GoDaddy hosting and send mail using the following code:

 $to = "[email protected]";
 $subject = "Test mail";
 $message = "Hello! This is a simple email message.";
 $from = "[email protected]";
 $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)

enter image description here

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?

© Pro Webmasters or respective owner

Related posts about email