From 830b39d151236ba4a391320d36cf0a33afc4f6e3 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 Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit 43dbcec3aeb4a30f531f1786d635f1ce47f051cc) Signed-off-by: Fridolin Somers --- Koha/Email.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Koha/Email.pm b/Koha/Email.pm index 73f7da54a8..161848489f 100644 --- a/Koha/Email.pm +++ b/Koha/Email.pm @@ -146,10 +146,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.39.5