feat: support Django MAILERS transport aliases #1
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/mailers-forgejo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
NITRO_EMAIL_MAILERto select a configured Django 6.1+MAILERStransport alias, including SMTP credentials and otherOPTIONS.nitro_send_emails.NITRO_EMAIL_BACKENDbehavior, current SMTP connection reuse, and per-email transactions. The new alias takes precedence when supplied.Root cause
The current helper constructs the delivery backend directly without the configured alias or its
MAILERS[alias]["OPTIONS"]. As a result, migrating SMTP credentials toMAILERSdoes not configure Nitro's delivery transport. This change uses Django's real mailers registry when the new alias setting is supplied.Verification
Local Python 3.13.5, isolated environments:
git diff --check: passed.Compatibility and scope
NITRO_EMAIL_BACKENDconfiguration remains supported, including an explicitly configured custom legacy backend alongsideMAILERS.EMAIL_BACKENDdeprecation warnings from test configuration.Final CI result
All 26 push/PR checks passed before merge. The push job for Python 3.14 / Django 5.2 initially failed during checkout because the runner could not connect to Forgejo (git exit 128); it passed on attempt 2. No source changes were needed.