MessageTemplate::sendTemplate() - Accept `array $messsageTemplate` option
authorTim Otten <totten@civicrm.org>
Mon, 9 Aug 2021 22:03:15 +0000 (15:03 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 9 Aug 2021 22:05:31 +0000 (15:05 -0700)
commite2615a28a1e361967b274126d3d753c1999cf25f
tree09479e3a740c1d4d749f92e14294eadbf4048604
parent0238a01ebedf0db69643c0adbd4d29589c4cffe4
MessageTemplate::sendTemplate() - Accept `array $messsageTemplate` option

When using `sendTemplate()`, how does it resolve the literal content of the template?

* (Before+After) You may give `string $valueName` (identify+load template by workflow-name)
* (Before+After) You may give `int $messageTemplateID` (identify+load template by ID)
* (Before+After) You may give `string $subject` (override the msg_subject)
* (After) You may give `array $messageTemplate` (specify the content for any/all fields;
  eg msg_subject, msg_text, msg_html)
* (After) Using `string $subject` is deprecated
CRM/Core/BAO/MessageTemplate.php