X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FMailer.pm;h=c4cea35f20181affeed2bd1be867520eb4b84bfa;hb=31b1b2c2a84f79d030033a3974957a94a11f752c;hp=17981331d04fbafcac59705f3ecd5069b03a852e;hpb=6f2893dcf199d5e5147cc2020c2ab6984f4274dc;p=kivitendo-erp.git diff --git a/SL/Mailer.pm b/SL/Mailer.pm index 17981331d..c4cea35f2 100644 --- a/SL/Mailer.pm +++ b/SL/Mailer.pm @@ -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 : $!"; }