hi everyone!

Q: which smtp-server does php use, when i
call the function mail(...)? and how can i
set this?

thx

finger

    look into your php.ini file.
    //Babak

      It uses the one that's indicated in the php.ini file.
      You can do it with IP or hostname, the default port is 25.
      Make sure it relays on the web server's location.
      If you are using PHP as an Apache Module, don't forget to restart the daemon.

      Good Luck.

        3 months later

        i have the same probelem. I have the problem with the sender that always answer anonymous. I have edit the php.ini with sendmail_path = /usr/sbin/sendmail , but it still doesn't work. Could some tell me which part php.ini that i have to edit???

          Write a Reply...