Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2001122

[PHP-DEV] Bug #14510 Updated: Unknown error in mail function From: davidfelton <email protected>
Date: 12/17/01

ID: 14510
User updated by: davidfelton <email protected>
Reported By: davidfelton <email protected>
Old Status: Feedback
Status: Open
Bug Type: Mail related
Operating System: Windows 2000 Terminal, IIS5
PHP Version: 4.1.0
New Comment:

smtp server is set to be localhost, which works fine with php 4.0.6

Previous Comments:
------------------------------------------------------------------------

[2001-12-14 12:19:09] sander <email protected>

What are your INI-settings about mail? I.e., your smtp-server, etc...

------------------------------------------------------------------------

[2001-12-14 10:58:01] davidfelton <email protected>

Well it's pretty straight forward:

$mailrecipient="davidfelton <email protected>";
$mailsubject="A message from your friend";
$mailmessage="Hello, this is an email sent with PHP";
$mailheaders="From: Dave <dave <email protected>>";

mail($mailrecipient,$mailsubject,$mailmessage,$mailheaders);

------------------------------------------------------------------------

[2001-12-14 10:52:55] sander <email protected>

Can you provide a sample script?

------------------------------------------------------------------------

[2001-12-14 05:29:31] davidfelton <email protected>

When using the mail function on windows 2000 with IIS5, it just returns 'unknown error' and exits. The mail function works fine on windows 98 with OmniHTTPd.

------------------------------------------------------------------------

Edit this bug report at http://bugs.php.net/?id=14510&edit=1

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>