Bug #11779: mail() returns an "Unknown error ..." in line [mail(...)]

From: Date: Thu, 28 Jun 2001 14:05:25 +0000
Subject: Bug #11779: mail() returns an "Unknown error ..." in line [mail(...)]
Groups: php.dev 
Request: Send a blank email to php-dev+get-58329@lists.php.net to get a copy of this message
From: sven@svenrunge.de Operating system: Win 2000 PHP version: 4.0.6 PHP Bug Type: Scripting Engine problem Bug description: mail() returns an "Unknown error ..." in line [mail(...)] Hello! i hope its really a bug and not a documentation problem, but I did'nt found a way to solve the problems in several php web sites, manuals or newsgroups :-( My system: Windows 2000 PHP 4.0.6 (win32 binary downloaded from php.net) Apache 1.3.12 an IIS (Win2000-included) I used both! webservers on different ports, I got exactly the same result! I want to create a mail while using this code: ------------------------------------- <script language="php"> echo ("--- line before mail function ---"); mail ("sven@svenrunge.de", "PHP mail test","test mail body"); echo ("--- line after mail function ---"); </script> ------------------------------------- I got this result: -------------------------------------- --- line before mail function --- Warning: Unknown error in C:\Inetpub\wwwroot\phproot\mail.php on line 17 --- line after mail function --- In the php.ini I changed the SMTP entry several times. I could change it in a valid, an invalid mailserver or i commentet it out (;SMTP = ]), I always got the same result. For me It seems that the php engine ignores the SMTP entry. I didn't got help in the php newsgroups, so I think it is'nt a simple problem. So I hope you can help me. Best regards Sven Runge, Germany ---------------------------------------- E-Mail: sven@svenrunge.de -- Edit Bug report at: http://bugs.php.net/?id=11779&edit=1

« previous php.dev (#58329) next »