core#2226: Scheduled Reminder fails to send if From Name includes comma
authorMonish Deb <monish.deb@jmaconsulting.biz>
Mon, 15 Feb 2021 15:38:28 +0000 (21:08 +0530)
committerMonish Deb <monish.deb@jmaconsulting.biz>
Mon, 15 Feb 2021 15:38:28 +0000 (21:08 +0530)
CRM/Core/BAO/ActionSchedule.php

index 47fdd617ca17d8a5331c6339464548dd40fc1568..b724780662aa9e4a2fe56cea4559f0fba992d4a8 100644 (file)
@@ -588,7 +588,7 @@ FROM civicrm_action_schedule cas
     $domainValues = CRM_Core_BAO_Domain::getNameAndEmail();
     $fromEmailAddress = "$domainValues[0] <$domainValues[1]>";
     if ($actionSchedule->from_email) {
-      $fromEmailAddress = "$actionSchedule->from_name <$actionSchedule->from_email>";
+      $fromEmailAddress = "\"$actionSchedule->from_name\" <$actionSchedule->from_email>";
       return $fromEmailAddress;
     }
     return $fromEmailAddress;