From d3217777a32071de7c3904caf8bb628b1f38d485 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 11 Aug 2020 17:50:54 +0200 Subject: [PATCH] SL::Mailer: Aufrufer kann optional beliebige Header mitgeben --- SL/Mailer.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SL/Mailer.pm b/SL/Mailer.pm index b066499c4..d609e3e11 100644 --- a/SL/Mailer.pm +++ b/SL/Mailer.pm @@ -248,11 +248,12 @@ sub send { # Set defaults & headers $self->{charset} = 'UTF-8'; $self->{content_type} ||= "text/plain"; - $self->{headers} = [ + $self->{headers} ||= []; + push @{ $self->{headers} }, ( Subject => $self->{subject}, 'Message-ID' => '<' . $self->_create_message_id . '>', 'X-Mailer' => "kivitendo " . SL::Version->get_version, - ]; + ); $self->{mail_attachments} = []; $self->{content_by_name} = $::instance_conf->get_email_journal == 1 && $::instance_conf->get_doc_files; -- 2.20.1