Use the configured charset for the recipient address encoding.
authorJan Schneider <jan@horde.org>
Sun, 6 Sep 2009 16:40:29 +0000 (18:40 +0200)
committerJan Schneider <jan@horde.org>
Sun, 6 Sep 2009 16:40:29 +0000 (18:40 +0200)
framework/Mime/lib/Horde/Mime/Part.php

index b7d8766..8215baf 100644 (file)
@@ -1420,7 +1420,7 @@ class Horde_Mime_Part
             }
         }
 
-        $result = $mailer->send(Horde_Mime::encodeAddress($email), $headers->toArray(array('charset' => $this->getCharset())), $msg);
+        $result = $mailer->send(Horde_Mime::encodeAddress($email, $this->getCharset()), $headers->toArray(array('charset' => $this->getCharset())), $msg);
 
         $this->_basepart = $old_basepart;