X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fmail%2FMailer.class.php;h=30f0ffb64b20c8b249d8a1b437bb1b83de7445ee;hb=75a1eedb8977b8f2db459128bab9aaf367e3b58b;hp=68142028e0b2d48c9120396a25baf6ead1640f61;hpb=7faef0e6d81444ad3ae10d1a2ce62fa753c80a9f;p=timetracker.git diff --git a/WEB-INF/lib/mail/Mailer.class.php b/WEB-INF/lib/mail/Mailer.class.php index 68142028..30f0ffb6 100644 --- a/WEB-INF/lib/mail/Mailer.class.php +++ b/WEB-INF/lib/mail/Mailer.class.php @@ -104,8 +104,8 @@ class Mailer { $port = defined('MAIL_SMTP_PORT') ? MAIL_SMTP_PORT : '25'; $username = defined('MAIL_SMTP_USER') ? MAIL_SMTP_USER : null; $password = defined('MAIL_SMTP_PASSWORD') ? MAIL_SMTP_PASSWORD : null; - $auth = isTrue(MAIL_SMTP_AUTH); - $debug = isTrue(MAIL_SMTP_DEBUG); + $auth = isTrue('MAIL_SMTP_AUTH'); + $debug = isTrue('MAIL_SMTP_DEBUG'); $mail = Mail::factory('smtp', array ('host' => $host, 'port' => $port, @@ -116,7 +116,7 @@ class Mailer { break; } - if (isTrue(MAIL_SMTP_DEBUG)) + if (isTrue('MAIL_SMTP_DEBUG')) PEAR::setErrorHandling(PEAR_ERROR_PRINT); $res = $mail->send($recipients, $headers, $data);