- labels: 701521 -->
- milestone: 473385 -->
The email sent from the contact module does not include
and Content-Type or Content-Transfer-Encoding headers.
This is the case even when the message includes 8 bit
characters. Messages with no CT and CTE headers should
consist only of 7 bit US-ASCII characters.
The following patch is a quick and dirty solution. I'm
afraid because it's quick and dirty it also includes a
hack to put the sender's address in the Reply-To field:
$headers = array();
$headers["From"] = $config->from_name . "
<".$config->from_address.">";
-if ($config->replyto_address != "")
$headers["Reply-to"] = $config->replyto_address;
+if ($config->replyto_address != "") {
+ $headers["Reply-to"] = $config->replyto_address;
+} else {
+ $headers["Reply-to"] = $_POST{'email'};
+}
+
+$langinfo = include(BASE.'subsystems/lang/'.LANG.'.php');
+$headers['Content-Type'] = 'text/plain; charset=' .
$langinfo['charset'];
+$headers['Content-Transfer-Encoding'] = '8bit';
if (!defined("SYS_USERS"))
include_once(BASE."subsystems/users.php");
It would probably be better to use Quoted-printable,
but imap_8bit() is not available on all systems, and
doing it long hand needs more work than I have time for
right now :)