* @param CRM_Contribute_Form_Task $form
*/
public static function postProcess(&$form) {
- list($formValues, $categories, $html_message, $messageToken, $returnProperties) = self::processMessageTemplate($form);
+ $formValues = $form->controller->exportValues($form->getName());
+ list($formValues, $categories, $html_message, $messageToken, $returnProperties) = self::processMessageTemplate($formValues);
$isPDF = FALSE;
$emailParams = array();
if (!empty($formValues['email_options'])) {