When a user clicks email icon in frontend article, a default message is sent giving the article link. But I want to modify this, and also send
Article title and
Introtext in the email.
- For this, I created override of
- In components/com_mailto/controller.php, set the email html content to true. But, I am not able to pass the article's id,title and introtext in the mail function which can be used in language file as dynamic parameters.
- Here, only article link is available.
Edit -- This is the core modification, therefore for this, I created a system override plugin as mentioned here:
I created a mailtooverridecontroller.php but here and copied the code of the
components/com_mailto/controller.php but now I am getting error
Cannot redeclare MailtoController class in components/com_mailto/controller.php. According to the documentation, the override controller file must run and not the old one.
Kindly, guide me what am I doing wrong here