PHP mail function not working

Discussion in 'PHP' started by Lotos1, Feb 25, 2010.

  1. #1
    I tried using the php mail function and it does not send any email. In my php.ini file in C:\Program Files\PHP I set SMTP to my ISP's smtp email server and port is set to 25. However, when I run phpinfo, it shows SMTP as localhost and port 25. I'm not sure why when I run phpinfo, it still says SMTP is set to localhost? How can it say this when I changed the php.ini file? Is there more than one php.ini file that I need to modify?
     
    Lotos1, Feb 25, 2010 IP
  2. javaongsan

    javaongsan Well-Known Member

    Messages:
    1,054
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #2
    yes there's 2, in php folder the other under apache folder. do a search.
     
    javaongsan, Feb 25, 2010 IP
  3. Lotos1

    Lotos1 Peon

    Messages:
    454
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm not using Apache but IIS 7 with Windows Vista.
     
    Lotos1, Feb 25, 2010 IP