It seems the solution I posted doesn't work that well..
When I try to change the compose template, it displays the new elements at the right place but I can't send e-mails any more.
if ($args['template'] == 'compose') {
// replace the default template with a new one which contains the new UI elements
$rcmail->output->send('myplugin.mycompose');
}
Apparently, the new template overwrites the default behavior of the compose template and when I click on the 'Send now' button, there is an endless loading message ("Sending message...").
Sorry if I've missed something obvious, maybe I was doing wrong since the beginning using templates to add elements in the user interface.
- What is the best way to add a
element between the subject input in php ?
- Is it possible to keep the default behavior of the compose.html template when you replace it by another template ?
Thanks