Encode subject properly so that foreign characters are transmitted properly
authorJoey Schulze <joey@infodrom.org>
Thu, 26 Jan 2012 21:51:10 +0000 (22:51 +0100)
committerJoey Schulze <joey@infodrom.org>
Thu, 26 Jan 2012 21:51:10 +0000 (22:51 +0100)
utils.php

index 6728aae..d6905e9 100644 (file)
--- a/utils.php
+++ b/utils.php
@@ -185,7 +185,7 @@ function ordersatz_write($id, $dir, $send)
                       $satz[0]['koch']);
 
     mail_attach($satz[0]['email'],
-               'Ordersatz ' . $satz[0]['name'],
+               mb_encode_mimeheader(utf8_decode('Ordersatz ' . $satz[0]['name']),'latin1'),
                $satz[0]['email'],
                'Infodrom ' . $satz[0]['koch'],
                array($dir . '/ordersatz.pdf'),