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 7779111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:34:05+00:00 2026-06-01T18:34:05+00:00

I have a website that is hosted by GoDaddy on a virtual dedicated platform,

  • 0

I have a website that is hosted by GoDaddy on a virtual dedicated platform, and I haven’t been able to get the mail() function to work properly in my PHP script. I’m trying to send emails with validation codes to people when they first sign up to my website, and the mail() function works great for Gmail address, but not others like AOL or even GoDaddy’s email service!

I tried talking with multiple GoDaddy support reps but they weren’t really helpful on the issue. I’ve looked around online and it seems like this is a very common problem with people who are hosting their websites on GoDaddy. I’m not getting bounce back emails when I the emails fail so it’s hard to know what’s going on.

Here is my PHP code:

$sendtoemail  = 'newsignup@aol.com';
$emailsubject = "Please validate your email";
$emailbody    = "Validation info, blah blah.";
$emailheader  = 'From: admin@example.com' . "\r\n" . 
                'X-Mailer: PHP' . "\r\n" . 
                'Reply-To: admin@example.com' . "\r\n" . 
                '-fadmin@example.com'; 
mail($sendtoemail, $emailsubject, $emailbody, $emailheader);

I’ve gotten a few errors when I checked /usr/local/psa/var/log/maillog (accessed through PuTTY SSH) that all ended in: deferral: ./Maildir:_No_such_file_or_directory/

I have also activated reverse DNS on my hosting account and created an SPF DNS record that sends email through “GoDaddy only” and checked the “Include PTR” box for DNS lookup. This was under the “TXT (text)” section of the “Zone File Editor” on GoDaddy’s DNS manager. (Hopefully that makes more sense to you than it does to me).

  • 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-06-01T18:34:07+00:00Added an answer on June 1, 2026 at 6:34 pm

    I am not sure if GoDaddy support PHP Mail, this is usually a big problem for web hosting companies because its used in scripts to send spam.

    The best thing to do is check what PEAR extensions GoDaddy have on there hosting, if they have PEAR mail, you can use that. If not, then you should try using authenticated mail sending.

    I can give you an example of PEAR and Authenticated mail if you need.

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

Sidebar

Related Questions

Let's say I have a website that is hosted on a traditional dedicated hosting:
I have a website that I work on locally and is hosted with a
i have a website that is being hosted on www.webhost4life.com. Its a basic asp.net
Say I have a website and a database of that website hosted locally on
I have a website that is implemented in php/mysql, and is hosted at hostmonster
I have a small website hosted by my university. The policy is that no
Background: Suppose I have a website that is hosted on http://www.example.com and the site
I have a website that my company hosted using hubspot.. now the guy who
I have a website that is hosted in a different timezone than the users
I have a website which is hosted on GoDaddy they have version 4.0 runtime.

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.