note 14974 added to function.mail.php

From: Date: Thu, 23 Aug 2001 00:39:12 +0000
Subject: note 14974 added to function.mail.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-17008@lists.php.net to get a copy of this message
System: Win2k, IIS5, PHP 4.0.6, Windows SMPT services <br>Problem: "CGI application misbehaved by not returning a complete set of HTTP headers". <br>Additional Complication: Cc: and Bcc: don't forward messages accordingly. <p>Background: When using mail(), adding standard headers such as "Cc: John Doe <jdoe@somewhere.net>\n" causes the system to complain that the cgi application misbehaved (somebody really should discipline that application ;-). <p>Astute debuggers will have noticed that changing "Cc:" to lowercase "cc:" alleviates that error message and actually inserts the appropriate header. However, messages still aren't forwarded as required. <p>Unfortunately, the only workaround I know of is to create a loop in which every recipient is a "To:" recipient. <p>Wish I could be of more help! <p>Ted Stresen-Reuter http://www.php.net/manual/en/function.mail.php

« previous php.notes (#17008) next »