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 <noreply@anthropic.com>
This commit is contained in:
ashwin31 2026-02-17 09:28:21 +05:30
parent cc28cfb4ec
commit 1aa676fc98

View file

@ -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: