]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Mailer.pm
SL/Template.pm in eine Datei pro Package aufgeteilt.
[mfinanz.git] / SL / Mailer.pm
index 02b11739823bac17a44ebe8f291ff802811df2c3..9ef0b085b1e943d5d740e339b8a543df13f5d12d 100644 (file)
@@ -114,7 +114,7 @@ sub send {
   $email          =~ s/[^\w\.\-\+=@]//ig;
 
   my %temp_form   = ( %{ $form }, 'myconfig_email' => $email );
-  my $template    = PlainTextTemplate->new(undef, \%temp_form, $myconfig);
+  my $template    = SL::Template::create(type => 'PlainText', form => \%temp_form);
   my $sendmail    = $template->parse_block($main::sendmail);
 
   if (!open(OUT, $sendmail)) {