Reputation: 7993
In Joomla! 1.6 Contact Form submission, I want to set a custom successful message, so that the front-end user can view that message after he submits the contact form.
There are 2 problems basically:-
com_contact
), as provided by the Joomla! v1.6. But I am unable to find the proper area from where the contact form is submitted & the mail is being sent. So I need to know the page name & the method name of this component, firing the mail from the front-end.Thanks in advance to all who can help.
Upvotes: 3
Views: 2797
Reputation: 28755
To show Message
use $this->setMessage(JText::_('COM_YOURCOMPONENT_MESSAGE'));
if you are in controller.
or use
JFactory::getApplication()->enqueueMessage(JText::_('COM_YOURCOMPONENT_MESSAGE'));
And Email is sent through JoomlaRoot / components / com_contact / controllers / contact.php
find the function submit()
, the mailing code is written here.
Upvotes: 6