From: Moritz Bunkus Date: Tue, 11 Aug 2020 15:50:54 +0000 (+0200) Subject: SL::Mailer: Aufrufer kann optional beliebige Header mitgeben X-Git-Tag: release-3.5.6.1~72 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d3217777a32071de7c3904caf8bb628b1f38d485;p=kivitendo-erp.git SL::Mailer: Aufrufer kann optional beliebige Header mitgeben --- 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;