PHP.ini and SMTP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • King Kong

    PHP.ini and SMTP

    Hi
    it seems this has been discussed various times. Although I cannot
    find a solution.
    Ebvironment:
    Win 2k
    Apache 2
    PHP 4.3.7

    I use the module mode and not the cgi mode.
    I cannot send email from this setup.
    php.ini is in winnt
    It has the following lines:
    [mail function]
    ; For Win32 only.
    SMTP = mailhost.where. am.com
    smtp_port = 25

    I tried this and I get:
    SYSTEM WARNING: mail(): Failed to connect to mailserver at
    "localhost " port 25, verify your "SMTP&quot ; and
    "smtp_port " setting in php.ini or use ini_set()
    PROBLEMS SENDING MAIL TO:

    OK, it takes localhost.
    Apache restart
    No change
    Log out and log in
    No change
    Reboot
    no change

    OK, now I search the entire harddisk for another php.ini.
    No other php.ini found than the one in winnt
    Now I run out of options.
    Who can help?
    Thanks
    Kay
  • Pedro Graca

    #2
    Re: PHP.ini and SMTP

    King Kong wrote:
    (snip)[color=blue]
    > OK, now I search the entire harddisk for another php.ini.
    > No other php.ini found than the one in winnt
    > Now I run out of options.
    > Who can help?[/color]


    Run phpinfo() and verify what path PHP is looking for the php.ini file.
    That should appear in "Configurat ion File (php.ini) Path".

    Copy your \winnt\php.ini file there; restart Apache; and test again :)


    HTH

    --
    USENET would be a better place if everybody read: | to email me: use |
    http://www.catb.org/~esr/faqs/smart-questions.html | my name in "To:" |
    http://www.netmeister.org/news/learn2quote2.html | header, textonly |
    http://www.expita.com/nomime.html | no attachments. |

    Comment

    Working...