Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 419707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:48:15+00:00 2026-05-12T18:48:15+00:00

I have set up an AJAX contact form on a client’s website. The problem

  • 0

I have set up an AJAX contact form on a client’s website.

The problem is that the email is not getting through to the client’s inbox.

I set up the client with Google Apps (in the same way I did for myself).

I used the same contact form with my email address and it works. But with any email addresses on their domain it doesn’t!

All members of the domain are receiving ‘ordinary’ emails.

What could be the difference that’s stopping mail() emails getting through?


UPDATE

Ok so I managed to solve it. Turns out that using a CNAME to point the domain to the correct server wasn’t enough for sendmail so I had to change it to an A record pointing directly to the server. Strange but true. Thanks for the help folks, you pointed me in the right direction 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T18:48:15+00:00Added an answer on May 12, 2026 at 6:48 pm

    It depends on the both settings on your server and the server on the receiving end.

    hotmail for example requires the use of correctly configured SPF records.

    many mail-receiving servers (including hotmail) require the email to originate from a Fully Qualified Domain Name. It is very possible that your e-mails send from PHP do not comply with this rule. (there is a good chance they originate from ‘apache’)
    see hotmail self help and hotmail postmaster info

    PHP’s mail() function does not include a lot of headers with your mail, so you will need to supply them yourself.

    The more hops your mail makes on it’s way to it destination, the more likely it is to be tagged as spam.
    So it might be a better option not to use PHP’s mail function and instead use a mail library that connects to an SMTP server just like your desktop mail application does.

    All in all, I would place my bets on an external library: Pear::Mail (documentation)

    You could also read: how do you make sure email you send programmatically is not automatically marked as spam

    UPDATE
    Failing the SenderId or SPF check can get your message dropped before it even hits the users inbox. The message will not end up in the users junk folder, it will go directly to /dev/null.
    I know this is at least true for hotmail and live mail. I see no reason for other hosts not to have implemented the same policy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a cForms II contact form set up. It works perfectly if I
I have problem with synchronizing results of function I get with AJAX with that
I have a modal dialog (done through jquery UI) that submit a form to
I have set up a form using TinyMCE in my MVC website. To do
I have a small ajax application built with php. Using phpMyAdmin I have set
I have set up a Django application that uses images. I think I have
Here's the problem I'm having, I've got a set of logs that can grow
I am using ASP.Net Ajax's Page Methods and I have an issue that an
In have a controller class that handle a Contact object. In this controller I
I have set up some WCF services that I use to call from javascript

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.