From 1aa676fc98bb6b6000d2e11d381acb048757f8c7 Mon Sep 17 00:00:00 2001 From: ashwin31 Date: Tue, 17 Feb 2026 09:28:21 +0530 Subject: [PATCH] fix: remove URL from activation email recipients list The activation URL was mistakenly added to the EmailMessage recipients list alongside the user email. Recipients should only contain email addresses; the activation link is already passed via the template context. Fixes #560 Co-Authored-By: Claude Opus 4.6 --- backend/common/tasks.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/common/tasks.py b/backend/common/tasks.py index 6101c78a..71f9c4b2 100644 --- a/backend/common/tasks.py +++ b/backend/common/tasks.py @@ -246,8 +246,7 @@ def resend_activation_link_to_user( context["token"], activation_key, ) - recipients = [context["complete_url"]] - recipients.append(user_email) + recipients = [user_email] subject = "Welcome to Bottle CRM" html_content = render_to_string("user_status_in.html", context=context) if recipients: