invoice => $data->{invoice},
vars => $data->{time_period_vars},
attribute => $_,
- attribute_format => 'text'
+ attribute_format => ($_ eq 'email_body' ? 'html' : 'text')
);
}
$mail->{bcc} = $global_bcc;
$mail->{subject} = $data->{config}->email_subject;
$mail->{message} = $data->{config}->email_body;
+ $mail->{message} .= SL::DB::Default->get->signature;
+ $mail->{content_type} = 'text/html';
$mail->{attachments} = [{
path => $pdf_file_name,
name => sprintf('%s %s.pdf', $label, $data->{invoice}->invnumber),