enabling php mail() on osx

Discussion in 'Mac Basics and Help' started by Devan, Jan 10, 2009.

  1. Devan macrumors newbie

    Joined:
    Jan 8, 2009
    #1
    How do i enable the php mail function on osx? ive had no luck with the solutions online.

    Im currently using xampp on my mac.
     
  2. toolbox macrumors 68020

    toolbox

    Joined:
    Oct 6, 2007
    Location:
    Australia (WA)
    #2
    I have never looked into this but os x has the apache webserver built in, you possibly need to install PHP and compile the support for it.
     
  3. Devan thread starter macrumors newbie

    Joined:
    Jan 8, 2009
    #3
    Yeah, i have php 5 installed with mysql & apache.

    But php mail() doesn't work :(
     
  4. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #4
    Yeah, but you're using XAMPP. Toolbox is suggesting you just use Mac OS X's built-in Apache web server.
     
  5. toolbox macrumors 68020

    toolbox

    Joined:
    Oct 6, 2007
    Location:
    Australia (WA)
    #5
    When your compiling php you need to add the modules into the httpd.conf
     
  6. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #6
    Unfortunately, this guy has yet to update his packages for Leopard, so you do have to do it by hand.
     
  7. Devan thread starter macrumors newbie

    Joined:
    Jan 8, 2009
    #7
    do you think its best if i install, well activate the php pre installed in my mac?

    tried it the first time but i had trouble installing mysql and all the libraries i needed.
     
  8. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #8
    MySQL is actually easy because it's available in package form. PHP I believe comes preinstalled but needs to be enabled in apache.conf.
     

Share This Page