|
From: Jirka P. <fi...@us...> - 2002-05-19 12:21:13
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv1687/phpbt/inc
Modified Files:
functions.php
Log Message:
Small code cleanup and repair of Content-Type.
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- functions.php 19 May 2002 11:26:04 -0000 1.26
+++ functions.php 19 May 2002 12:21:10 -0000 1.27
@@ -490,15 +490,15 @@
$headers .= "\n";
// There have to be no newline at the end of $headers
}
- $headers .= "Content-type: text/plain; charset=\"".$STRING['lang_charset']."\"\n";
+ $headers .= "Content-Type: text/plain; charset=\"".$STRING['lang_charset']."\"\n"Content-Transfer-Encoding: ";
// If configured to send MIME encoded emails
if (SEND_MIME_EMAIL) {
- $headers .= "Content-Transfer-Encoding: quoted-printable\nMIME-Version: 1.0";
- $retval = mail ($to, $subject, qp_enc($body), $headers);
+ $retval = mail ($to, $subject, qp_enc($body), $headers.
+ "quoted-printable\nMIME-Version: 1.0");
} else {
- $headers .= "Content-Transfer-Encoding: 8bit";
- $retval = mail ($to, $subject, $body, $headers);
+ $retval = mail ($to, $subject, $body, $headers.
+ "8bit");
}
// Returns true if mail is eccepted for delivery, otherwise return false
|