MIME MIME

From: Date: Mon, 28 Aug 2000 13:49:18 +0000
Subject: MIME MIME
Groups: php.general 
Request: Send a blank email to php-general+get-13938@lists.php.net to get a copy of this message
Sorry for the bandwidth, This is a very important issue for me. I didn't had any answer on that yet. I have installed this terrific module named: "Postlister 1,16" by Patrick Black (http://www.nameless.f2s.com/). Unfortunetly, the author seems to be unreachable. I don't know much yet about PHP/MySQL . I'm learning. Anyhow, this module works great to manage multiple mailing lists. The only thing I wish It could manage better are the accents (for my projected FRENCH lists). Is there any Guru out there in this list, who could show me where to put some coding concerning "MIME encoding" and/or any extra mail header to make sure the accents (éèàâ...) are transmitted. I suspect that, somewhere inside these two following files, I could insert something to help do the job: ----------------------------------------------- File: "functions.php": (see line #31)? ----------------------------------------------- <?php $version = "1,16"; require("settings.php"); require($languageFile); line #31: $ekstraHeadere = "X-Mailer: Postlister $version"; ----------------------------------------------- File: "send.php": (Used to send the message to the lists members) (see line #48) ----------------------------------------------- <?php require("functions.php"); # No-cache headers: header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); sidehoved("", 0); echo "<center>\n"; $kommando = mysql_query("select afsender, emne, ebrev from $mainTable where liste = '".addslashes($liste)."'"); $resultat = mysql_fetch_array($kommando); $af = stripslashes($resultat[afsender]); $em = stripslashes($resultat[emne]); $te = stripslashes($resultat[ebrev]); if ($start < $iAlt) {
    if (($slut + 10) > $iAlt) $slut = $iAlt;
    else $slut = 10;
    $kommando = mysql_query("select epostadresse, id from ".addslashes($liste)." where godkendt = '1' limit ".addslashes($start).", $slut");
    if (($start + 10) > $iAlt) $naeste = $iAlt;
    else $naeste = $start + 10;
    $fra = $start + 1;
    echo "$s86 $fra $s87 $naeste $s97 $iAlt.\n";
    echo "<h3>$s88</h3>\n";
    while ($resultat = mysql_fetch_array($kommando)) {
        $ep = stripslashes($resultat[epostadresse]);
        $id = stripslashes($resultat[id]);
        $nyte = str_replace("[RCPT_EMAIL]", $ep, $te);
        $nyte = str_replace("[SUBSCRIBE_URL]", "http://$HTTP_HOST".dirname($PHP_SELF)."/confirm.php?liste=$liste&abonner=1&epostadresse=".urlencode($ep)."&id=$id", $nyte);
        $nyte = str_replace("[UNSUBSCRIBE_URL]", "http://$HTTP_HOST".dirname($PHP_SELF)."/confirm.php?liste=$liste&abonner=0&epostadresse=".urlencode($ep)."&id=$id", $nyte);
line #48:	        mail($ep, $em, $nyte, "From: $af\n$ekstraHeadere");
    }
    echo "<script language=\"javascript\">\n";
    echo "<!--\n";
    echo "window.location.href = \"http://$HTTP_HOST$PHP_SELF?liste=$liste&start=$naeste&iAlt=$iAlt\"\n";
    echo "// -->\n";
    echo "</script>\n";
} else {
    echo "<h3>$s85</h3>\n";
    echo "<form action='index.php' method='post'>\n";
    echo "<input type='submit' value='$s104'>\n";
    echo "</form>\n";
} echo "</center>\n"; sidefod(); ?> ----------------------------------------------- Thanks again for your understanding, Bonne journée. Yves Malouin -- ------------------------ Malouin Design Graphique http://www.malouin.qc.ca Québec (Québec) CANADA

« previous php.general (#13938) next »