]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Mailer.pm
Warensuche: Menge in Einkaufsrechnungen positiv anzeigen
[kivitendo-erp.git] / SL / Mailer.pm
index 17981331d04fbafcac59705f3ecd5069b03a852e..c4cea35f20181affeed2bd1be867520eb4b84bfa 100644 (file)
@@ -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 : $!";
   }