'subject' => CRM_Utils_Array::value('subject', $formValues),
'from' => CRM_Utils_Array::value('from_email_address', $formValues),
);
+
+ $emailParams['from'] = CRM_Utils_Mail::formatFromAddress($emailParams['from']);
+
// We need display_name for emailLetter() so add to returnProperties here
$returnProperties['display_name'] = 1;
if (stristr($formValues['email_options'], 'pdfemail')) {
}
if (!empty($html)) {
// ie. we have only sent emails - lets no show a white screen
- CRM_Utils_System::civiExit(1);
+ CRM_Utils_System::civiExit();
}
}