Problem mit Mail-Funktion, sendet cc,bcc nicht

Hallo,

ich hab ein mittelschweres Problem mit der PHP-Function mail().

Die Mail kommt zwar beim Absender an, aber leider kommt weder der cc noch der bcc an. Obwohls beim Empfänger angezeigt wird (der cc meine ich).
Ich kann auch nicht mehrere Adressaten angeben, durch Komma getrennt. Dann wird mail() gar nicht erst ausgeführt.

Wie krieg ich das in den Griff?

Hier mein Script:

/* recipients */
$recipient = „[email protected]“;

/* subject */
$subject = „TestMail!“;

/* message */
$message .= "
Dies ist eine HTML-Mail ?!
\n";
$message .= „This mail was created automatically by php\n“;
$message .= „Day \t\tMonth \t\tYear\n“;
$message .= „14th \t\tMay \t\t2001\n“;

/* you can add a stock signature */
$message .= „–\r
\n“; //Signature delimiter
$message .= „Viele druecken nur deshalb ein Auge zu, um besser zielen zu koennen!“;

$headers .= „From: formular \n“;
$headers .= „Return-Path: \n“; // Return path for errors
$headers .= „Content-Type: text/html\nContent-Transfer-Encoding: 8bit\n“;
$headers .= „cc:[email protected]\n“; // CC to
$headers .= „bcc:[email protected]\n“; // BCC to

/* and now mail it */
mail($recipient, $subject, $message, $headers);
?>

Versuch es mal mit:

CC:…
BCC:…

statt cc und bcc.

HTH
Patrick

Quelle
„[…] 1.it must be: BCC and not bcc!
2.email addresses must be separated by comma(,), not by semi-colon(:wink:
3.resultset - in my case it is var. $display_block - must have empty space in front and empty space after the comma, otherwise all bcc addresses appear in the body of the message.“
by [email protected]

Gruss
Patrick

"[…] 1.it must be: BCC and not bcc!

hab ich ausprobiert, aber mit dem gleichen Ergebnis :frowning:

2.email addresses must be separated by comma(,), not by
semi-colon(:wink:

hmm, jetzt funktioniert es. Aber ich bin mir 99% sicher, dass
ich es auch schon so probiert hatte, aber naja, egal!

3.resultset - in my case it is var. $display_block - must have
empty space in front and empty space after the comma,
otherwise all bcc addresses appear in the body of the
message."

hab ich jetzt nicht so verstanden, das mit dem Resultset und so, aber die CC Adressen werden in der Mail des „Hauptempfängers“ angezeigt, aber kommen halt nicht beim CC an.
Weder bcc noch cc erscheinen im Body.

Weitere Ideen?

Gruß (und Danke)

Knud