|
Posted by nvduffer on 08/10/06 18:57
I am running IIS5 on my XP Pro home computer and am unable to send
email through my ISP's mail server. In the PHP.INI are two lines:
smtp = smtp.telus.net
smtp_port = 25
I have opened port 25 on my own computer (do I need to though?) and I
am able to telnet to the ISP's SMTP server. When I try to send an email
from my PHP page I get the well-known error message:
Warning: mail() [function.mail]: Failed to connect to mailserver at
"localhost" port 25, verify your "SMTP" and "smtp_port" setting in
php.ini or use ini_set() in [filename] on line 40.
The strange thing is, the mail() function seems to be trying to connect
to "localhost" and not "smtp.telus.net". There is only one PHP.INI file
(in C:\WINDOWS) and I have run phpinfo() to confirm that this indeed is
the INI file being loaded. However phpinfo() states that the SMTP
server is "localhost" and not "smtp.telus.net".
I added an ini_set("smtp", "smtp.telus.net") right before the mail()
function and got the same error: unable to connect to "localhost".
I am not running IIS's SMTP service, and I am stumped. Any help is
appreciated!
Navigation:
[Reply to this message]
|