X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/117332fcc34457aadb85db18dbc42f48d32b732e..8bd48e18d5d0096bc9b1ef13c7a84934c0d6cf6d:/SL/Mailer.pm diff --git a/SL/Mailer.pm b/SL/Mailer.pm index 52a7d7469..87b3dfc86 100644 --- a/SL/Mailer.pm +++ b/SL/Mailer.pm @@ -225,7 +225,7 @@ sub send { $self->_store_in_journal('failed', 'driver could not be created; check your configuration & log files'); $::lxdebug->message(LXDebug::WARN(), "Mailer error during 'send': $error"); - return "send email : $error"; + return $error; } # Set defaults & headers @@ -264,7 +264,7 @@ sub send { $self->{journalentry} = $self->_store_in_journal; - return $ok ? '' : "send email: $error"; + return $ok ? '' : ($error || "undefined error"); } sub _all_recipients {