why is this mail code not working on a windows server?

From: Date: Fri, 21 Feb 2003 18:45:36 +0000
Subject: why is this mail code not working on a windows server?
Groups: php.windows 
Request: Send a blank email to php-windows+get-18663@lists.php.net to get a copy of this message
Hi, I'm getting rather desperate about this one. Code below is working fine on one server: Apache 1.3.26 /PHP 4.1.2/Linux. On another server (Apache 1.3.24/PHP 4.3.1/Windows 2000) I get keeping this error: Failed to connect to mailserver at "smtp.vt4.net" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:\oracle\ora91\apache\apache\htdocs\templateprobeersel\tmp47v15anqr5.php on line 16 CODE: $headers.="From:me@vt4.net\n"; ini_set("SMTP", "smtp.vt4.net"); ini_set("sendmail_from","me@vt4.net"); mail("me@vt4.net", "test php", "Line 1",$headers); Can anyone help me? Thx, Cathy

« previous php.windows (#18663) next »