Fix variable name.
authorJan Schneider <jan@horde.org>
Mon, 15 Feb 2010 14:38:50 +0000 (15:38 +0100)
committerJan Schneider <jan@horde.org>
Mon, 15 Feb 2010 17:03:58 +0000 (18:03 +0100)
kronolith/lib/Kronolith.php

index fd14d1c..cd1047a 100644 (file)
@@ -1938,7 +1938,7 @@ class Kronolith
                                                            'to' => implode(',', $df_recipients),
                                                            'from' => $from,
                                                            'charset' => Horde_Nls::getCharset()));
-                    $mail->addHeader('User-Agent', 'Kronolith ' . $GLOBALS['registry']->getVersion());
+                    $mime_mail->addHeader('User-Agent', 'Kronolith ' . $GLOBALS['registry']->getVersion());
                     $mime_mail->setBody($message, Horde_Nls::getCharset(), true);
                     Horde::logMessage(sprintf('Sending event notifications for %s to %s', $event->title, implode(', ', $df_recipients)), __FILE__, __LINE__, PEAR_LOG_DEBUG);
                     $mime_mail->send(Horde::getMailerConfig(), false, false);