You could write a bit of javascript that ran when the button was clicked, and then sent an ajax request to the server. You should be able to use com_ajax - see https://docs.joomla.org/Using_Joomla_Ajax_Interface - to run a function in your module.
Inside your module function you can use the Joomla mail functions to send the email - see eg https://docs.joomla.org/Sending_email_from_extensions
Inside your module function you can use the Joomla mail functions to send the email - see eg https://docs.joomla.org/Sending_email_from_extensions
Statistics: Posted by robbiej — Fri Mar 08, 2024 8:37 am