Page 1 of 1

php.ini? or SMTP server? I can't use the mail() function

Posted: Wed Nov 20, 2002 7:56 am
by imroue
IIS SMTP Settings for PHP?
Could someone guide me to set up IIS SMTP to work with PHP?

I am not able to send mail with the mail().
I think my PHP code is working (I confirmed with others).
So the problem is either
1) the SMTP IIS configuration
or
2) the php.ini
--------
This is what I have in the php.ini:
[mail function]
; For Win32 only.
SMTP = "localhost" ; for Win32 only

; For Win32 only.
sendmail_from = me@localhost.com ; for Win32 only

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
---------
Please let me know if u have any ideas.

Thanks,

Posted: Wed Nov 20, 2002 11:42 am
by twigletmac
Instead of 'localhost' try putting either the name (e.g. smtp.myisp.com) or the IP address of your SMTP server.

Mac

Please check the error

Posted: Tue Jan 14, 2003 10:08 am
by Pakcik_Kantin
If it says can't connect to SMTP means that your SMTP wuold use other ports than 25.
Or your SMTP doesn't accept external address, or maliciuos address. Try to install Lotus Mail,or Squirrel Mail