X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/d3ae61a22bd97c6cbe9d7010591b2222b19bfde4..11da4a00c2c8b1148634a368ec7170b19e7ba0ab:/SL/Mailer.pm diff --git a/SL/Mailer.pm b/SL/Mailer.pm index 17981331d..edd0eecda 100644 --- a/SL/Mailer.pm +++ b/SL/Mailer.pm @@ -44,8 +44,8 @@ my $num_sent = 0; sub new { $main::lxdebug->enter_sub(); - my ($type) = @_; - my $self = {}; + my ($type, %params) = @_; + my $self = { %params }; $main::lxdebug->leave_sub(); @@ -116,9 +116,9 @@ sub send { my %temp_form = ( %{ $form }, 'myconfig_email' => $email ); my $template = SL::Template::create(type => 'PlainText', form => \%temp_form); - my $sendmail = $template->parse_block($main::sendmail); + my $sendmail = $template->parse_block($::lx_office_conf{applications}->{sendmail}); - if (!open(OUT, $sendmail)) { + if (!open(OUT, "|$sendmail")) { $main::lxdebug->leave_sub(); return "$sendmail : $!"; }