hello,
i just got this while attempting to send mail using mail() function:
Warning: 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 C:\WebShare\wwwroot\intranet\viva\db\updatedb.php on line 45
What could have been causing this one?
mail() problem
Moderator: General Moderators
- harrisonad
- Forum Contributor
- Posts: 288
- Joined: Fri Oct 15, 2004 4:58 am
- Location: Philippines
- Contact:
Sounds like you're using PHP on a Windows machine. If so, PHP actually needs to send mail using an SMTP server which you specify in PHP.INI. At the moment, PHP can't connect to the SMTP server because you're probably not running one on "localhost". Perhaps specify your ISP's SMTP server for it to use.
< Simon >
< Simon >
- harrisonad
- Forum Contributor
- Posts: 288
- Joined: Fri Oct 15, 2004 4:58 am
- Location: Philippines
- Contact:
re
you know guys, my script is behind a company firewall and i believe it is the one causing the error.
i asked our system admin but he didn't know how to resolve it
any ideas?
i asked our system admin but he didn't know how to resolve it
any ideas?