https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28729
--- Comment #28 from Ulrich Kleiber <[email protected]> --- Maybe in Email.pm the envelope-from should be set to the return-path. Koha 20.11 --- Email.pm 2021-07-29 11:07:24.560924469 +0200 +++ Email.pm.patched 2021-07-29 11:49:01.108795689 +0200 @@ -76,9 +76,6 @@ my ( $self, $params ) = @_; my $args = {}; - $args->{from} = $params->{from} || 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 $args->{subject} = $params->{subject} // ''; @@ -117,6 +114,9 @@ ); } + $args->{from} = $addresses->{sender} || C4::Context->preference('ReturnpathDefault') || $params->{from} || 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 $args->{cc} = $addresses->{cc} if $addresses->{cc}; $args->{bcc} = $addresses->{bcc} -- 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/
