X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDN.pm;h=72154c24fa08745304161ab98887afc44f81fbab;hb=d8a50ddefe779afb7c1f4f6299439b0757d4540b;hp=f1e132fb7742fba5462e561258fc16c5956eb995;hpb=00e5ce0d02a0d1e5a6f7b8a28744ee7961932a0b;p=kivitendo-erp.git diff --git a/SL/DN.pm b/SL/DN.pm index f1e132fb7..72154c24f 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -363,7 +363,7 @@ sub send_email { return; } - my $template = PlainTextTemplate->new(undef, $form, $myconfig); + my $template = SL::Template::create(type => 'PlainText', form => $form, myconfig => $myconfig); my $mail = Mailer->new(); $mail->{from} = $myconfig->{email}; $mail->{to} = $ref->{recipient};