I'd like to send a formatted HTML email from a custom component. I thought I would be able to create a tmpl
file somewhere like components/mycomponent/views/emailer/tmpl/default_email.php
and then in the view (at components/mycomponent/views/emailer/view.email.php
) I'd be able to render the default_email
view with the data pulled from the model and then send it.
It appears the "normal" Joomla way is to do a sprintf
with a language string to generate the email.
Is there no way to render the template file in the view prior to sending the email?