From dcec69345442fff2f99ba4cfb0b090e880ce4113 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 29 Oct 2021 13:22:59 +0100 Subject: [PATCH] Bug 28729: Additions to POD --- Koha/Email.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Koha/Email.pm b/Koha/Email.pm index f3f0eee7e1..a5303c3c0b 100644 --- a/Koha/Email.pm +++ b/Koha/Email.pm @@ -150,10 +150,16 @@ sub create { $email->send_or_die({ transport => $transport [, $args] }); -Overloaded Email::Stuffer I method, that takes care of Bcc handling. +Overloaded Email::Stuffer I method, that takes care of Bcc and Return-path +handling. + Bcc is removed from the message headers, and included in the recipients list to be passed to I. +Return-path, 'MAIL FROM', is set to the 'Sender' email header unless an explicit 'from' +parameter is passed to send_or_die. 'Return-path' headers are actually set by the MTA, +usually using the 'MAIL FROM' information set at mail server connection time. + =cut sub send_or_die { -- 2.20.1