6 Replies - 1432 Views - Last Post: 14 March 2013 - 03:28 AM Rate Topic: -----

#1 laytonsdad  Icon User is offline

  • Cheese and Sprinkles
  • member icon

Reputation: 404
  • View blog
  • Posts: 1,720
  • Joined: 30-April 10

Sent mail from PHP goes to spam folder

Posted 13 March 2013 - 07:00 PM

I am using codeigniter on godaddy.com for a site I'm building and I ran across an issue that I have never had before on any other host.

My registration conformation email goes to the users spam folder in gmail. Why is this? Should I create an email through gmail to send it SMTP with their servers?

Thanks for your help.
Is This A Good Question/Topic? 0
  • +

Replies To: Sent mail from PHP goes to spam folder

#2 Takk  Icon User is offline

  • D.I.C Head

Reputation: 40
  • View blog
  • Posts: 110
  • Joined: 08-March 13

Re: Sent mail from PHP goes to spam folder

Posted 13 March 2013 - 07:13 PM

Short answer is yes, send the mail using smtp authentication and it should be fine.

The answer is a little more than I can piece together in my head to throw back at you right now, but it's generally to do with how email is sent from the webserver itself. Meaning, if someone says the email was sent from me@yourdomain.com, yet it was actually sent from mail.godaddy.com, gmail will think it's coming from someone spoofing their email to look like it came from your domain.

In certain cases the mail() function could be a big cause for this, check into phpmailer if you continue to have issues, it'll allow you to 100% authenticate your outgoing email and should work fine. It's pretty light, and generally easy to get set up.
Was This Post Helpful? 2
  • +
  • -

#3 laytonsdad  Icon User is offline

  • Cheese and Sprinkles
  • member icon

Reputation: 404
  • View blog
  • Posts: 1,720
  • Joined: 30-April 10

Re: Sent mail from PHP goes to spam folder

Posted 13 March 2013 - 07:18 PM

Takk Thank you for your responce.

I was actually looking at phpmailer just now.
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is offline

  • Head MFIC
  • member icon

Reputation: 5066
  • View blog
  • Posts: 26,449
  • Joined: 10-May 07

Re: Sent mail from PHP goes to spam folder

Posted 13 March 2013 - 07:55 PM

SMTP sent from a residential ip address will be marked as spam by something like 90% of isp's. & yes, isp's reserve two ip pools. One for residential customers & one for corporate customers. Lastly if your reverse DNS does not match what you say it is, that too will be a large factor in getting your mail into the spam folder.

Just saying you use 'mail' in php does not give actual details that provide to the situation. It's a hosting issue, not a php issue.

One last item to add, if your ip address is black listed for spam (or backscatter, or other security items), then the entire ip is flagged as spam & has nothing to do with the domain name, dns, &/or (yes, you guessed it) php.

Switching to php mailer will do nothing to resolve the issue.
Was This Post Helpful? 1
  • +
  • -

#5 laytonsdad  Icon User is offline

  • Cheese and Sprinkles
  • member icon

Reputation: 404
  • View blog
  • Posts: 1,720
  • Joined: 30-April 10

Re: Sent mail from PHP goes to spam folder

Posted 13 March 2013 - 08:48 PM

I am contacting GoDaddy.com to try to see if there is a resolution. If so I'll post here to let you all know.
Was This Post Helpful? 0
  • +
  • -

#6 laytonsdad  Icon User is offline

  • Cheese and Sprinkles
  • member icon

Reputation: 404
  • View blog
  • Posts: 1,720
  • Joined: 30-April 10

Re: Sent mail from PHP goes to spam folder

Posted 13 March 2013 - 09:21 PM

On further search for answers it seems to be a codeigniter config issue. I am working on a solution now.
Was This Post Helpful? 1
  • +
  • -

#7 baxter111  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 77
  • Joined: 30-June 08

Re: Sent mail from PHP goes to spam folder

Posted 14 March 2013 - 03:28 AM

Hey,

We had the same issue and to get round it make sure you use a correct DKIM.

Let me know how you get on.

Scott
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1