-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EMAIL] Improve email sending reliability and security #307
Conversation
This change wraps all URLs in email templates with HTML <a> tags to make them clickable and improve usability for users accessing these emails across different mail clients. Links were added to all occurrences of base and internal URIs in welcome, password reset, secret sharing and test emails. This should help avoid confusion and allow direct navigation from the email content. Signed-off-by: delano <delano@onetimesecret.com>
- Obscure customer identifiers in rate limiting logs using a hashing function - Replace verbose debug logging with targeted error handling - Improve error messages for rate limiting exceptions Signed-off-by: delano <delano@onetimesecret.com>
Updates the email sending logic to extract the configuration into variables for easier maintenance and customization. Also wraps the delivery in a begin/rescue block to capture any errors. This avoids unintentionally failing silently and ensures proper reporting when emails cannot be sent. Signed-off-by: delano <delano@onetimesecret.com>
Email not working #280 E-mails are not being sent #285 - Avoid delivery failures by complying with sending platform requirements - Add reply-to address - Improve traceability with logging of from, to, subject at start of send - Facilitate troubleshooting by logging specific error types separately Signed-off-by: delano <delano@onetimesecret.com>
PR Description updated to latest commit (0b514bc) |
PR Review
|
Signed-off-by: delano <delano@onetimesecret.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User description
This pull request fixes the issue where emails are not being sent. It includes several improvements to the email functionality, such as wrapping URLs in email templates with HTML tags to make them clickable, improving log handling, fixing the reset password request logic, and addressing the email from address. These changes should ensure that emails are sent successfully and improve the overall email functionality.
Fixes #280, #285
Type
Bug fix
Changes walkthrough
base.rb
Improve error handling and logging in API
lib/onetime/app/api/base.rb
helpers.rb
Enhance rate limiting error handling and logging
lib/onetime/app/helpers.rb
function