From a31ccb01a73a5cf4dec272589d2c97dd8555dc92 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Wed, 4 Sep 2019 21:43:13 +0000 Subject: [PATCH] Bug 21390: Send registration verification emails immediately To test 1/ Enable self registration 2/ Register, notice message is queued in the table but not sent 3/ Apply patch 4/ Register again, notice message is queued, but immediately sent Sponsored by: Goethe-Institut Signed-off-by: Maryse Simard Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize (cherry picked from commit 957d583d2efce66e31fe05f229fda91c58324bc2) Signed-off-by: Fridolin Somers --- opac/opac-memberentry.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl index 11a7ae2ae4..a8003103d3 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -194,6 +194,9 @@ if ( $action eq 'create' ) { C4::Context->preference('KohaAdminEmailAddress'), } ); + my $num_letters_attempted = C4::Letters::SendQueuedMessages( { + letter_code => 'OPAC_REG_VERIFY' + } ); } else { ( $template, $borrowernumber, $cookie ) = get_template_and_user( -- 2.39.2