PHP Newbie: I am having a similar problem in a slightly diffrent environment. I am not sure if the fix above applies to my situation or not, or how to implement it if it does.
ENVIRONMENT:
Windows 2003 SP1 Server
IIS 6.0
MySQL v 4.1
PHP v 4.3.11
It is important to note that this is a dedicated server where I am the admin, This is NOT a single shared hosting account. I do have root access to the box. I also need to make my settings generic a I will be using PHP for other domains that I host. So settings can not be specific to one website.
BROWSER ERROR MESSAGE:
This is returned when processing a sale in my shopping cart Zen Cart. I am told by experienced Zen Cart people that this is a PHP issue as I am also not receiving email from Zen cart as I should.
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:\Inetpub\myclientwebsite\www\zencart\includes\classes\email.php on line 554
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:\Inetpub\myclientwebsite\www\zencart\includes\classes\email.php on line 554
Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\myclientwebsite\www\zencart\includes\classes\email.php:554) in C:\Inetpub\ myclientwebsite \www\zencart\includes\functions\functions_general.php on line 52
VERIFIED PHP.INI SETTINGS
SMTP = ‘localhost”
smtp_port = 25
sendmail_from = serveradmin@myserverdnsdomain.net
I am a PHP newbie and would appreciate some guidance on how to fix this issue?
Thanks - Jody