I spotted an option in com_contacts called custom reply. I thought it must be new as I dont remember seeing it before.
So I thought it might be for sending am email in response to a visitor using the contact form. No
Digging further it appears that it was a functionality available upto about joomla 1.6 but since removed and finally had an obsolete file removed related to this in 3.61
The only time that option is checked is here
joomla-cms/components/com_contact/src/Controller/ContactController.php
Lines 197 to 199 in 4a21f3e
and if custom_reply is set to yes then the contact email doesnt get sent
So what is the purpose of this custom_reply option today
/me confused
Labels |
Added:
No Code Attached Yet
|
I dont know what more I can say
So what is the purpose of this custom_reply option today
I do not know for sure. But by looking in the code,
joomla-cms/components/com_contact/src/Controller/ContactController.php
Lines 191 to 199 in 4a21f3e
The email can be send inside the event onSubmitContact
, and set $contact->params->set('custom_reply', true)
to prevent submission by the component.
But there is nothing in core that can actually act on this component option?
I did not found anything else.
Also as I see, in the contact parameters, User can set "Contact Form" to Show and "Custom Reply" to "Yes" the form will be shown but email will not be send (confusing behavior).
Well, yes, after removing the field descriptions the meaning of this parameter were lost.
I just checked 2.5:
COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_DESC="Turns off the automated reply, allowing for Plugins to handle integration with other systems."
So, its purpose as I have wrote before, is to allow to plugin handle email sending.
It is from 14 years ago ;)
2.5.25
COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_DESC="Turns off the automated reply, allowing for Plugins to handle
integration with other systems."
EDIT: young men are faster :D
So I propose either
Thoughts - I guess 2 is the safest option
correction
it doesnt turn off the automated reply as there is no automated reply to turn off
Adding the description is a good idea.
It is probably may be in use, so we cannot remove it without breaking someone's website
it doesnt turn off the automated reply as there is no automated reply to turn off
Maybe wrong wording, it just means that Joomla will not send email on its own, when the form submited.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-08-01 13:31:16 |
Closed_By | ⇒ | brianteeman |
thanks
Hello? @brianteeman
would you be able to elaborate on what's issue you getting?
Thank you!