At 20:48 07.11.2002, Jill S said:
--------------------[snip]--------------------
>never install a "beta version" and that
>http://www.php.net/downloads/ - Latest version of PHP
>Complete Source Code
>    * PHP 4.2.3 (tar.bz2) [2,694Kb] - 6 September 2002
>      md5: a0c7531f3d53a7736742c780f72a0f41
>    * PHP 4.2.3 (tar.gz) [3,334Kb] - 6 September 2002
>      md5: 2a4a963d79d97ea2725c860c77e908a2
>are betas.
>He also referred me to a blurb on the php.net Home page
>reading:
>
>   PHP 4.3.0pre2 Released
>   http://qa.php.net/
>   [27-Oct-2002] PHP 4.3.0pre2 is available for download. 
>   This is the second pre-release version and incorporates a 
>   large number of bug fixes since the first pre-release. 
>  Still, to help us catch as many bugs as possible, please
>  download it and start testing.
>
>... So, my questions are - Is the tech support guy correct?

>and Is there a workaround for sending a bcc using mail()
>with v.4.1.2?

On http://www.php.net/manual/en/ref.mail.php there is an interesting
article in the user notes - I paste it here for convenience, his solution
should solve your problems:

[EMAIL PROTECTED]
16-Aug-2002 05:46 

If you need to send an e-mail with an html content and the same e-mail have
Bcc headers.
Place the Bcc (and why not also Cc) at the end of your additional headers.
Otherwise, people receiving the email in copy may have the html code in
their screen. The one who are designed as main recipient will not have this
problem.

Explanation :
=========
The e-mail headers are broken when the PHP parser delete the Bcc line
(Removed cause hidden, obvious !).

Example :
=======

This is bad

$header = "From: \"".addslashes($sender_name)."\" <".$sender_email.">\r\n";
$header .= "Reply-To: ".$sender_email."\r\n";
$header .= "Cc: ".$other_email."\r\n";
$header .= "Bcc: ".$another_email."\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$header .= "X-Priority: 1\r\n";
$header .= "X-Mailer: PHP / ".phpversion()."\r\n";

The following is good

$header = "From: \"".addslashes($sender_name)."\" <".$sender_email.">\r\n";
$header .= "Reply-To: ".$sender_email."\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/html; charset=iso-8859-1\r\n";
$header .= "X-Priority: 1\r\n";
$header .= "X-Mailer: PHP / ".phpversion()."\r\n";
$header .= "Cc: ".$other_email."\r\n";
$header .= "Bcc: ".$another_email."\r\n";

Sorry for my bad english. :-)

Redy Ramamonjisoa
<[EMAIL PROTECTED]>


-- 
   >O     Ernest E. Vogelsinger
   (\)    ICQ #13394035
    ^     http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to