diff --git a/include/class.mailer.php b/include/class.mailer.php index 412428eccdf11d370951141fc91e3cd358ab5386..83f097050624924326e9da6b22e90eeb041f5deb 100644 --- a/include/class.mailer.php +++ b/include/class.mailer.php @@ -509,6 +509,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; }