Welcome to WebmasterWorld Guest from 54.167.40.25

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

OSX 10.5.3 and PHP mail not working? Here's a fix

Worked on this for hours, finally found a solution.

     
5:31 pm on Jun 7, 2008 (gmt 0)

New User

10+ Year Member

joined:June 21, 2005
posts:26
votes: 0


I am not sure what changed in v10.5.3, but after updating, my PHP scripts would no longer send out mail, even though Apple mail was fine. Maybe a fluke, maybe note. But it looks like the domain names wouldn't resolve after the update. This fixed it:

Open up a terminal window

Type this:
sudo vi /etc/resolv.conf

add a couple of name servers

Save and exit.

Now try mailing again. I hope this saves someone a couple hours of frustration.

[edited by: coopster at 5:46 pm (utc) on June 7, 2008]
[edit reason] removed specific nameservers [/edit]

2:17 pm on June 10, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 12, 2005
posts:5966
votes: 0


Thanks for sharing your solution. :)