Skip to content
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

dev/core#4273 - CRM/Mailing - Allow user to configure donotreply email address #26180

Merged

Conversation

olayiwola-compucorp
Copy link
Contributor

@olayiwola-compucorp olayiwola-compucorp commented May 9, 2023

Overview

See - https://lab.civicrm.org/dev/core/-/issues/4273

Before

The user cannot configure the do not reply email address and the default do-not-reply@$emailDomain is used.

After

Users can now configure which of their created From Email Addresses to use as do not reply email address.
qqqqqo090

@civibot
Copy link

civibot bot commented May 9, 2023

No issue was found matching the number given in the pull request title. Please check the issue number.

@civibot
Copy link

civibot bot commented May 9, 2023

(Standard links)

@colemanw
Copy link
Member

I would have expected a setting like this to be a textfield, but you've configured it as a dropdown-select using getAvailableFromEmailAddresses - what's the purpose of constraining the input like that? Seems like it would make configuring this setting more difficult because first you have to add the do-not-reply address on a different screen then come back to this screen and select it.

@olayiwola-compucorp
Copy link
Contributor Author

Firstly, we aimed to reuse existing from email address. Additionally, since the /admin/options/from_email_address screen already performs email validation, there is no need to revalidate user input on the settings screen.

@colemanw

@jamienovick
Copy link

@colemanw thanks for taking a look! Do you have any further thoughts on this or is it good to merge? 🤞

@olayiwola-compucorp olayiwola-compucorp force-pushed the configureDoNotReplyMail branch 3 times, most recently from 05d8acd to 56a14e1 Compare May 29, 2023 09:04
@olayiwola-compucorp
Copy link
Contributor Author

@colemanw Thanks for the review, the PR has been updated with your suggestions..

kindly check now.

@olayiwola-compucorp olayiwola-compucorp force-pushed the configureDoNotReplyMail branch from 56a14e1 to 6dba5ca Compare May 30, 2023 22:19
@olayiwola-compucorp olayiwola-compucorp force-pushed the configureDoNotReplyMail branch from 6dba5ca to d87aa37 Compare May 31, 2023 06:55
@colemanw
Copy link
Member

colemanw commented Jun 1, 2023

Hmm, it seems to me that having 'default' => NULL ought to tell the form that the setting is optional and doesn't need to be validated if left blank. Does that make sense to you @eileenmcnaughton ?

@eileenmcnaughton
Copy link
Contributor

@colemanw I would say specifically that the email rule should early return on empty values - the job of vailidating required is different to validating an email

@colemanw
Copy link
Member

colemanw commented Jun 7, 2023

@eileenmcnaughton ok I've updated it, but I feel like we're going to have to update a lot of rules if we want them all to allow empty strings to pass through unvalidated.

@colemanw colemanw merged commit df11067 into civicrm:master Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants