[Mailman-Users] Mailman/PHP/Digest Issue

Mark Sapiro msapiro at value.net
Thu Oct 20 06:34:09 CEST 2005


Neal Berwick wrote:
   Date: Wed, 21 Sep 2005 13:58:46 -0400

> My apologies in advance if I'm directing this to the wrong location, but


My apologies for not responding sooner, but your post got buried in my
inbox.


>I'm about out of ideas. I recently built a small PHP web form to allow
>individuals to send email updates to our various mailman lists. Everything
>works quite nicely for non-digest users, but when I tried to configure the
>script for digest users, things started to get weird.

<snip>

> Below I list the headers that I'm setting in php, the relevant sections of
>the plaintext digest with incorrectly counted messages/topics and finally
>the relevant sections of the plaintext digest with the correct message
>count.
> Thanks in advance to anyone who has any thoughts
> php:
>
>$boundary='--' . md5( uniqid("IsNealAGenius") );
>$headers = "From: \"Home Office\" <" . $from. ">\n";
>$headers .= "Mime-Version: 1.0\n";
>$headers .= "Content-type: multipart/alternative;\n boundary=\"$boundary\"\n
>X-Mailer: PHP/" . phpversion() . "\n";
>
>$message="\nThis is a multi-part message in MIME format.\n";
>$message.="\n\n--$boundary\n";
>$message.="Content-Type: text/plain; charset=\"us-ascii\"\n";
>$message.="Content-Transfer-Encoding: 8bit\n\n";
>$mail_to = "test_list at here.com";
>$message .= strip_tags($test);
>$message .= "\n\n--$boundary\n";
>$message .= "Content-Type: text/html; charset=\"us-ascii\"\n";
>$message.="Content-Transfer-Encoding: 8bit\n\n";
>$message .= $test;


At this point it appears you are missing

$message .= "\n\n--$boundary--\n";


>mail ($mail_to,"test",$message,$headers);
>......................................................................................

<snip>


-- 
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan




More information about the Mailman-Users mailing list