Enabling the mail() function

Discussion in 'Site & Server Administration' started by mikeinsp, Feb 10, 2007.

  1. #1
    Hi everyone,

    I am having a problem with the mail() function no longer working on sites where I am using a php.ini file to allow the use of almost pretty permalinks in IIS.

    Basically, when on several of my WP powered sites I have a php.ini file with the following code in it:
    cgi.fix_pathinfo = 1
    cgi.force_redirect = 0

    It allows the use of /index.php/%postname%/ style permalinks but this file then disables the mail() function from working. mail() is used by wordpress to email you when there are comments on your blog, etc... but the real problem is that I have contact forms that rely on the mail() function.

    So the million dollar question is: Can I put some line(s) of code in my php.ini file at the root of each directory to allow mail() to work???
     
    mikeinsp, Feb 10, 2007 IP
  2. koolasia

    koolasia Banned

    Messages:
    1,413
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0