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

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
imroue
Forum Newbie
Posts: 6
Joined: Fri Oct 18, 2002 11:24 pm

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

Post 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,
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Instead of 'localhost' try putting either the name (e.g. smtp.myisp.com) or the IP address of your SMTP server.

Mac
Pakcik_Kantin
Forum Newbie
Posts: 19
Joined: Mon Jan 13, 2003 8:23 pm
Location: Kuala Lumpur

Please check the error

Post 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
Post Reply