X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDN.pm;h=d9d02a6261714c8657b36f6bb7b3ea17db905396;hb=6092ef39d7da3d61b6df25c9dc3ff23b1a7b8acb;hp=b3c4d897a3f4d4cc038111f3c9e1d4b6710db78b;hpb=ded6910ee829a64b950b32f4452afcbefcd06adb;p=kivitendo-erp.git diff --git a/SL/DN.pm b/SL/DN.pm index b3c4d897a..d9d02a626 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -487,13 +487,17 @@ sub send_email { } or die $main::locale->text('No email for user with login #1 defined.', $ref->{invoice_employee_login}); } + my $html_template = SL::Template::create(type => 'HTML', form => $form, myconfig => $myconfig); + $html_template->set_tag_style('<%', '%>'); + my $template = SL::Template::create(type => 'PlainText', form => $form, myconfig => $myconfig); my $mail = Mailer->new(); $mail->{bcc} = $form->get_bcc_defaults($myconfig, $form->{bcc}); $mail->{from} = $from; $mail->{to} = $ref->{recipient}; $mail->{subject} = $template->parse_block($ref->{email_subject}); - $mail->{message} = $template->parse_block($ref->{email_body}); + $mail->{message} = $html_template->parse_block($ref->{email_body}); + $mail->{content_type} = 'text/html'; my $sign_backup = $::myconfig{signature}; $::myconfig{signature} = $sign if $sign; $mail->{message} .= $form->create_email_signature();