Poslister > Where to put MIME encoding information?
| From: | Malouin Design Graphique | Date: | Sun, 27 Aug 2000 19:51:29 +0000 |
| Subject: | Poslister > Where to put MIME encoding information? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-2402@lists.php.net to get a copy of this message | ||
Hello,
I have installed this terrific module named: "Postlister 1,16" by Patrick Black (http://www.nameless.f2s.com/)
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
4032, rue de la Scie
Cap-Rouge, (Québec) G1Y 3T4
CANADA
T.418.657.5129
F.418.657.1319