I've read many posts about setting the smtp host address.

The only problem I have is that in my php.ini file I have NO mail, sendmail or smtp information set. So I added

[mail function]
SMTP = smtp.sevenww.com
sendmail_from = jcheuvront@sevenww.com

now when I rum phpinfo()

it shows

sendmail_from jcheuvront@sevenww.com
sendmail_path /usr/sbin/sendmail -t -i

SMTP smtp.sevenww.com

Where is it getting the sendmail path from? I do not have sendmail configed on thius server because we use a different server for mail. Please help I'm very confussed.

-- Jon C.

    I have no idea if this will help or work, but......

    the SMTP and sendmail_from directives are for Win32 installations only. Since phpinfo(); is giving you a sendmail_path I'm assuming your running on a *Nix machince. Do you have a sendmail_path line in your php.ini? If not, add:

    sendmail_path =

    to your php.ini and see if this solves the problem. Although I don't know why, if you are running on a *Nix php.ini might be picking up the sendmail path from another program or from the system config. However, I don't know too much about the inner working of Linux et. al. so this is a very uneducated guess on my part. Hope this helps!!!

    Cheers,

    Geoff A. Virgo

      a year later

      this is what i found in the php manual
      (i was looking for some info on the mail function 🙂 )

      "sendmail_path string
      Where the sendmail program can be found, usually /usr/sbin/sendmail or /usr/lib/sendmail configure does an "

      it auto configures it i guess

      "honest attempt of locating this one for you and set a default, but if it fails, you can set it here.

      Systems not using sendmail should set this directive to the sendmail wrapper/replacement their mail system offers, if any. For example, Qmail users can normally set it to /var/qmail/bin/sendmail."

      dunno if it helped

        Write a Reply...