diff --git a/include/class.mailer.php b/include/class.mailer.php index 9c7638bce119eefad3a2110105fc43c8e7b5acf2..316d32e0905a0b9a735e1493859dc465eff05fe3 100644 --- a/include/class.mailer.php +++ b/include/class.mailer.php @@ -443,6 +443,8 @@ class Mailer { //No SMTP or it failed....use php's native mail function. $mail = mail::factory('mail'); + // Ensure the To: header is properly encoded. + $to = $headers['To']; return PEAR::isError($mail->send($to, $headers, $body))?false:$messageId; }