Selve siden er af åbenlyse grunde password-beskyttet.
$bcc genereres kommasepareret fra sql-data.
Følgende rutine virkede ikke korrekt.
$from = "$navn <$email>";
$to = 'navn <email>';
$bcc = "navn1 <email1>, navn2 <email2>[, osv.]";
$subject = $emne;
$message.= "$tekst\n";
$headers = 'From: ' . $from . '\r\n';
$headers.= 'Bcc: ' . $bcc . '\r\n';
$headers.= 'Reply-To:' . $from . '\r\n';
$headers.= 'Disposition-Notification-To: $navn <$email>'. "\r\n";
$headers.= 'MIME-Version: 1.0 \r\n';
$headers.= 'Content-Type: text/plain; charset=iso-8859-1' . "\r\n";
$headers.= 'X-Mailer: PHP/' . phpversion();
if($send) mail($to, $subject, $message, $headers);
To: Bcc: Reply-To: og Disposition-Notification-To: samler sig i en linie.
Hvad er der galt?
Header på mail sendt med rutinen [navne ofg adresser ændret]:
Return-Path: <postmaster>
X-Original-To: skolekammeraten
Delivered-To: skolekammeraten
Received: from mx3.b-one.net (mx3.b-one.net [195.47.247.23])
by mail1.b-one.net (Postfix) with ESMTP id 8B8A51008566
for <skolekammeraten>; Thu, 13 Oct 2005 03:01:46 +0200 (CEST)
Received: from mo1.b-one.net (mo1.b-one.net [195.47.247.27])
by mx3.b-one.net (Postfix) with ESMTP id 9BEB828004CD
for <skolekammeraten>; Thu, 13 Oct 2005 03:01:45 +0200 (CEST)
Received: from localhost.localdomain (srv4.b-one.net [195.47.247.43])
by mo1.b-one.net (Postfix) with ESMTP id 83C3D140585CA
for <skolekammeraten>; Thu, 13 Oct 2005 03:01:45 +0200 (CEST)
To: Skolekammeraten informere <skolekammeraten>
Subject: Test
From: Test <test>\r\nBcc: navn1 <email1>, navn2 <email2>\r\nReply-To:Test
<test>\r\nDisposition-Notification-To: skolekammeraten <skolekammeraten>
MIME-Version: 1.0 \r\nContent-Type: text/plain; charset=iso-8859-1
X-Mailer: PHP/4.4.0
Message-Id: <20051013010145.83C3D140585CA@mo1.b-one.net>
Date: Thu, 13 Oct 2005 03:01:45 +0200 (CEST)
X-Virus-Scanned: by b-one.net
--
Med venlig hilsen Poul Erik Jensen
www.genealog.dk www.skolekammeraten.dk
Subj. må tilføjes [1234] ved direkte svar