@@ -, +, @@ The rules are If the values are set in the branch use that, else use the syspref --- basket/sendbasket.pl | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) --- a/basket/sendbasket.pl +++ a/basket/sendbasket.pl @@ -30,6 +30,7 @@ use C4::Items; use C4::Auth; use C4::Output; use C4::Biblio; +use Koha::Email; my $query = new CGI; @@ -50,13 +51,9 @@ my $email_sender = $query->param('email_sender'); my $dbh = C4::Context->dbh; if ( $email_add ) { - my $email_from = C4::Context->preference('KohaAdminEmailAddress'); + my $email = Koha::Email->new(); + my %mail = $email->create_message_headers({ to => $email_add }); my $comment = $query->param('comment'); - my %mail = ( - To => $email_add, - From => $email_from - ); - my ( $template2, $borrowernumber, $cookie ) = get_template_and_user( { template_name => "basket/sendbasket.tt", --