-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
Add [DO NOT REPLY]
to the from
name of accounts email for mailers
#4803
Add [DO NOT REPLY]
to the from
name of accounts email for mailers
#4803
Conversation
from
name of accounts email for mailers
from
name of accounts email for mailers[DO NOT REPLY]
to the from
name of accounts email for mailers
4d0b002
to
14199aa
Compare
[DO NOT REPLY]
to the from
name of accounts email for mailers[DO NOT REPLY]
to the from
name of accounts email for mailers
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.
Hey -- Thanks for this!
I think your solution would produce the desired result - but would be "DRYer" to just change it in the place we've already defined the from, yes?.
14199aa
to
211763e
Compare
Thank you for the review, @cielf! I’ve made the requested changes and would appreciate it if you could take another look when you have time. I apologize for force-pushing the update; I wanted to squash the commits to keep the history cleaner by excluding "revert" commit. |
Looks good to me! Thank you! |
@Sukhpreet-s: Your PR |
Resolves #4521
Description
This PR updates the
from
name for all the emails sent using the[email protected]
email address to include[DO NOT REPLY]
. These changes are implemented in theCustomDeviseMailer
.It seems only some of the emails, those set up by Devise, use the
[email protected]
email address, as other mailers override the from address to[email protected]
. These non-Devise mailers, with thefrom
name format "Please do not reply to this email as this mailbox is not monitored — Human Essentials", remain unchanged as they are outside this issue's scope.Observation notes:
While working on this issue, I noticed that some emails are not sent to users at all.
List of Devise configured emails that are set-up to send (changed in this PR):
List of Devise configured emails that are not set-up to send (unchanged):
confirmable
moduleconfirmable
modulelocalable
moduleType of change
How Has This Been Tested?
This fix is tested manually.
I haven't added any tests for this since the tests for other mailers are only checking for the email address in the
from
name and not for the text part. Please let me know if we should still add tests to check if[DO NOT REPLY]
is included.Steps to reproduce the
Invitation Instructions
email:[email protected]
email.My Organization
in the left navigation bar.Invite User to this Organization
button.Invite User
.[DO NOT REPLY]
in thefrom
name.Steps to reproduce the
Reset Password
email:Login
button.Forgot your password?
link.[email protected]
in the email input box and click theSend me reset password instructions
.[DO NOT REPLY]
in thefrom
name.Screenshots
When inviting new user to an Organization:
Before
After
When resetting the password:
Before
After