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

  • Home
  • SEARCH
  • 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 8302897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:23:55+00:00 2026-06-08T17:23:55+00:00

I just updated OS X to Mountain Lion yesterday, but the php function mail()

  • 0

I just updated OS X to Mountain Lion yesterday, but the php function mail() does not work anymore.

Before updating, the PHP mail() function worked fine, Apple mail works fine.
After updating, Apple mail works fine, but PHP mail() function DOES NOT work.

Webserver: XAMPP 1.7.3

I use this code to test the mail() function:

if (mail($to, $object, $content, "From: ". $from)) 
{ 
    echo 'send '; 
} 
else 
{ 
    echo "not send"; 
}

It shows: not send

Anything I have to change? such as the php.ini or something else?

Thanks in advance.

  • 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-08T17:23:56+00:00Added an answer on June 8, 2026 at 5:23 pm

    Finally I found the solution.
    After looking at the error_log (/Applications/XAMPP/xamppfiles/logs/error_log), there is an error:
    sendmail: fatal: chdir /Library/Server/Mail/Data/spool: No such file or directory

    Do the following at your terminal:

    sudo mkdir -p /Library/Server/Mail/Data/spool
    sudo /usr/sbin/postfix set-permissions
    sudo /usr/sbin/postfix start
    

    Then the php mail() works!

    Reference:
    https://apple.stackexchange.com/questions/54051/sendmail-error-on-os-x-mountain-lion

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

Sidebar

Related Questions

I just updated my Macbook to Mountain Lion, but now I'm not able to
I have just updated to 1.4.2 and now everything that has worked before does
I just updated PHP 5.2.0 to 5.2.11 and now I am getting loads of
I just updated my OS from Snow Leopard to LION 10.7.3, and I usually
I just updated my django to 1.4. But I am getting the following error
Just updated to 1.6.1 and I am getting warnings that I should not be
I have just updated to using EF 4.0 where before i was using Linq
Just updated the version of Ruby (1.9.2 to 1.9.3) I have installed but now
Just updated from xcode 4.1 to 4.3 because I needed some functions. But now
I just updated my joomla from 1.0.12 to 1.5 but the component remository doesn't

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.