note 78616 added to ref.mail

From: Date: Fri, 19 Oct 2007 14:01:16 +0000
Subject: note 78616 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-131542@lists.php.net to get a copy of this message
Hello, I have got a problem with my mail function: I don't know what is going on. Very strange: I am running an IIS6 server on Windows server 2003 with php 5.2.4 on it. In my php.ini file (it is in my php default folder c:\Inetpub\php) I turned the "SMTP localhost" into SMTP 192.168.1.107 (the adress of my mail server) I have got the same message all the time, even if I reboot my IIS services: "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 C:\Inetpub\Mes sites Web5\test2.php on line 8 Fatal error: Call to undefined function user_init() in C:\Inetpub\Mes sites Web5\test2.php on line 9 " I can read the phpinfo.php in the same folder. It says that the SMTP adress is "localhost"... My test2.php is like this : <?php $TO = "jloire@partnaire.fr"; $SO = "imprimes@partnaire.fr"; $h = "From: " . $SO; $subject = "Commande d'imprimés"; while (list($key, $val) = each($HTTP_POST_VARS)) { $message .= "$key : $val\n"; } mail($TO, $subject, $message, $h); Header("Location: http://192.168.1.105"); ?> I don't really know what to do anymore, I spent several days on google trying to figure out why this happens.. Thank you very much for your help ---- Server IP: 217.174.196.197 Probable Submitter: 81.252.76.33 ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit -- https://master.php.net/note/edit/78616 Del: integrated -- https://master.php.net/note/delete/78616/integrated Del: useless -- https://master.php.net/note/delete/78616/useless Del: bad code -- https://master.php.net/note/delete/78616/bad+code Del: spam -- https://master.php.net/note/delete/78616/spam Del: non-english -- https://master.php.net/note/delete/78616/non-english Del: in docs -- https://master.php.net/note/delete/78616/in+docs Del: other reasons-- https://master.php.net/note/delete/78616 Reject -- https://master.php.net/note/reject/78616 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131542) next »