-
Notifications
You must be signed in to change notification settings - Fork 49
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
Contact page - customizable email to per tenant #1622
Conversation
I100 contact us See merge request notch8/hyku-up!32
are there changes from this we'd like to port back to Hyrax, especially to help avoid the copied-code situation? i think maybe opening up |
since the `ContactForm` model doesn't use `ActiveRecord`, it can be easily subclassed and customized. allowing the controller to use a configured/injected model helps avoid the need for hard monkeypatches in downstream apps; see, e.g. samvera/hyku#1622
@no-reply yes, seems like a good call going forward. I'm tempted to get this merged and open a ticket for it as part of the broader upgrade task set. |
oh yeah. i definitely wouldn't delay this on upstream improvements. just wanting to set you up for a cleaner solution down the road. |
since the `ContactForm` model doesn't use `ActiveRecord`, it can be easily subclassed and customized. allowing the controller to use a configured/injected model helps avoid the need for hard monkeypatches in downstream apps; see, e.g. samvera/hyku#1622
since the `ContactForm` model doesn't use `ActiveRecord`, it can be easily subclassed and customized. allowing the controller to use a configured/injected model helps avoid the need for hard monkeypatches in downstream apps; see, e.g. samvera/hyku#1622
Approved, but I don't want to merge as I won't have space to further help out. |
Fixes #1207 #517
Split settings of default contact page email "from" and email "to". There is a Hyrax.config.contact_email as well, but we really need both a "from" and a "to" email address and we want to be able to set both from ENV.
Override Hyrax default so that the from address isn't whatever is put in the form, as many MTAs do now allow non-specified from addresses. Instead include the contact page email in the reply-to and the subject.
Allow changing the "to" email address on a per tenant basis. Provides an admin form for a given tenant to set where they want contact emails to be sent to.
@samvera/hyrax-code-reviewers
Please note contribution for this PR comes from Hykuup.com and NYC's DORIS project