https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28729
--- Comment #41 from Katrin Fischer <[email protected]> --- Hi Martin, thanks a lot for looking into this! We'll try to test your fix, this is the patch we have been running with meanwhile: Set the envelope-from and therefore the return-path to sender. --- Koha/Email.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Koha/Email.pm b/Koha/Email.pm index 9c077a6b84..068f8d9004 100644 --- a/Koha/Email.pm +++ b/Koha/Email.pm @@ -173,6 +173,9 @@ sub send_or_die { $args->{to} = \@recipients; } + $args->{from} = $self->email->header("Sender") || C4::Context->preference('KohaAdminEmailAddress'); + Koha::Exceptions::BadParameter->throw("Invalid 'from' parameter: ".$args->{from}) + unless Email::Valid->address( -address => $args->{from}, -fqdn => 0 ); # from is mandatory $self->SUPER::send_or_die($args); } -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
