From 2d22393f667c52289da931bd8eb9a47448add826 Mon Sep 17 00:00:00 2001 From: Maryse Simard Date: Tue, 5 Feb 2019 18:24:23 -0500 Subject: [PATCH] Bug 8000: (QA follow-up) Update the to_address in the message queue Content-Type: text/plain; charset=utf-8 Signed-off-by: Liz Rea Signed-off-by: Marcel de Rooy --- C4/Letters.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index c23d8cc90e..2ce5db359c 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -1324,7 +1324,7 @@ sub _send_message_by_email { $sendmail_params{'Auth'} = {user => $username, pass => $password, method => $method} if $username; - _update_message_to_address($message->{'message_id'},$to_address) unless $message->{to_address}; #if initial message address was empty, coming here means that a to address was found and queue should be updated + _update_message_to_address($message->{'message_id'},$sendmail_params{To}) if $message->{to_address} ne $sendmail_params{To}; #if initial message address was empty, coming here means that a to address was found and queue should be updated; same if to address was overriden by create_message_headers if ( Mail::Sendmail::sendmail( %sendmail_params ) ) { _set_message_status( { message_id => $message->{'message_id'}, -- 2.11.0