add message template id to sendmail function
Overview
In trying to use AlterMailParams I ran into this 'bug'. The MessageTemplateID is a field that is used in the email workflow functions, but when manually sending an email using a message template the ID is not passed on.
Reproduction steps
- Send email manually to a contact using a message template
- the message template ID is not passed from submit function to sendmail function in CRM/Contact/Form/Task/EmailTrait.php
- AlterMailParams cannot use the message template ID for the kind of mails
Current behaviour
Message Template ID is not passed on to send email functions
Expected behaviour
Message Template ID is not passed on to send email functions
Environment information
- CiviCRM: 5.53.0
- CMS: Drupal 7.92
- PHP: 7.4.30 (fpm-fcgi)
- Database: 10.5.15-MariaDB-0+deb11u1-log engine: InnoDB 10 row format: Dynamic, Compressed
- Webserver: Apache/2.4.54 (Debian)