fix: update email template 'from' field to use only the email address#39896
fix: update email template 'from' field to use only the email address#39896namann5 wants to merge 5 commits intoRocketChat:developfrom
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
🧠 Learnings (6)📓 Common learnings📚 Learning: 2026-03-03T11:11:48.541ZApplied to files:
📚 Learning: 2025-10-07T15:08:37.419ZApplied to files:
📚 Learning: 2026-03-20T13:51:23.302ZApplied to files:
📚 Learning: 2026-02-26T19:25:44.063ZApplied to files:
📚 Learning: 2026-02-26T19:25:44.063ZApplied to files:
🔇 Additional comments (1)
WalkthroughUpdated authentication startup logic: the email template "from" value now uses only the configured Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
No issues found across 1 file
Since this is your first cubic review, here's how it works:
- cubic automatically reviews your code and comments on bugs and improvements
- Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
- Add one-off context when rerunning by tagging
@cubic-dev-aiwith guidance or docs links (includingllms.txt) - Ask questions if you need clarification on any suggestion
|
Implemented a fix for the SMTP rejection affecting password recovery and email confirmation emails. Root cause
Some SMTP providers, such as
FixChanged the Accounts template sender to use the raw configured File changed
ImpactThis fixes:
|
Fixed the issue in
apps/meteor/app/authentication/server/startup/index.js.What changed:
Accounts.emailTemplates.fromwas changed from:${settings.get('Site_Name')} <${settings.get('From_Email')}>settings.get('From_Email')Why this fixes the bug:
Accountsemail templates.Fromheader likeSite Name <user@mail.ru>.mail.rusetup, enforce that the actualFromheader exactly matches the authenticated SMTP user/address.From_Email, which is why they were working while reset/verification emails were failing.Files changed:
apps/meteor/app/authentication/server/startup/index.jsPR-ready summary:
From_Emailin Meteor Accounts templatesFromheader to exactly match the authenticated senderSummary by CodeRabbit