fix mail encoding problem (crude but effective)
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Tue, 8 Feb 2011 21:43:24 +0000 (21:43 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Tue, 8 Feb 2011 21:43:24 +0000 (21:43 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@725 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

www/config.php.template
www/inc/wext/customer.php
www/inc/wext/order.php
www/template/en/resetlogin.txt

index 854b646..862514d 100644 (file)
@@ -85,7 +85,7 @@ $twigoptions = array(
   'cache' => false,
 
   //character set, default is utf-8
-  //'charset' => 'utf-8',
+  'charset' => 'utf-8',
 
   //enable this while you are actively changing code/templates and use a cache:
   //'auto_reload' => true,
index 4dba57a..a311e09 100644 (file)
@@ -310,7 +310,7 @@ class WOCustomer extends WOCustomerAbstract
                        }
                }
                //send mail
-               mb_send_mail($ct->email,$subject,$mailtext,$mailheader);
+               mail($ct->email,$subject,$mailtext,$mailheader);
        }
        
        /**page shown to the customer after clicking the password reset link above*/
index 22d7ff0..b4af70a 100644 (file)
@@ -739,7 +739,7 @@ class WOOrder extends WOOrderAbstract
                        }
                }
                //send mail
-               mb_send_mail($ct->email,$subject,$mailtext,$mailheader);
+               mail($ct->email,$subject,$mailtext,$mailheader);
        }
 };
 
index 14eecaa..eff80b1 100644 (file)
@@ -8,6 +8,8 @@ and after that the body of the mail.
 #}
 Password Reset at MagicSmoke.silmor.de
 From: no-reply@localdomain.com
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 8bit
 
 Hello {{customer.title}} {{customer.name}}!