-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Fixed issue with sending from do-not-reply@domain address #21455
Conversation
(Standard links)
|
Makes sense to me - @MegaphoneJon @mlutfy ? |
This makes sense to me but I'm having trouble thinking through whether this could cause a problem on upgrade for existing sites. I can't think of where the default email address is used normally, but it seems possible that it's not a valid address for sending. I'll also ping @JoeMurray as the mind behind the Outbound Domain Enforcement extension. I did do a quick grep and it looks like we've caught all the places where this might be used as a "From" address so that's one concern laid to rest. |
I can understand this but it feels kind of odd in a way that you could only send from one specific email address for a domain, also just going to ping @agh1 as well here in case Andie has any thoughts on this as well |
I suspect this is very rarely used, and would +1 the PR. As a feature it makes sense, but it would probably be better to have a "From Email" that is configurable as a "no-reply address". Or a setting specifically for those kind of notifications. For people upgrading, the "breakage" will be that suddenly those notifications have a valid "from", so hitting reply might end up in their main mailbox. It's not too dramatic. I would recommend tagging |
Has been merge-ready for a while. Changing to merge-on-pass and re-running tests since 11 days in this 5.43 cycle is enormous. Jenkins retest this please. |
nice - note I did put this PR in the dev digest too |
Looks like the failure is unrelated because the database seems to be gone. Jenkins retest this please. |
Seems like a legitimate test problem, but unrelated to this PR? Test: CRM_Member_Form_Task_PDFLetterTest.testMembershipTokenReplacementInPDF - Failing since 6 builds
|
I'm so out of the loop that I forgot this was a setting to begin with! I agree with @MegaphoneJon, @mlutfy, and @seamuslee001 that it seems like the domain address isn't always going to be the best choice, but I understand that none of this is ideal. |
test this please |
Fixed issue with sending from do-not-reply@domain address resulting in fatal errors because an invalid from address was used.
Overview
When confirming a group description another e-mail is send with a from e-mail address do-not-reply@domain.com when the mail account is not allowed to send on behalf of this e-mail address a fatal error is shown.
This PR sets the from address to the default domain e-mail address and leaves the reply to to do-not-reply@domain.com so when a user press reply on this e-mail it goes to the do-not-reply address.
Before
When it is not possible to send from do-not-reply@domain.com it might result in an error like below:
After
The from e-mail address used is the default domain from e-mail address. The reply-to is still do-not-reply so the fatal error is gone.
Comments
See this issue: https://lab.civicrm.org/dev/core/-/issues/645