From: Monish Deb Date: Mon, 15 Feb 2021 15:38:28 +0000 (+0530) Subject: core#2226: Scheduled Reminder fails to send if From Name includes comma X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6ad53728ddc574cb29bf63eb8dc41a26c3f4007e;p=civicrm-core.git core#2226: Scheduled Reminder fails to send if From Name includes comma --- diff --git a/CRM/Core/BAO/ActionSchedule.php b/CRM/Core/BAO/ActionSchedule.php index 47fdd617ca..b724780662 100644 --- a/CRM/Core/BAO/ActionSchedule.php +++ b/CRM/Core/BAO/ActionSchedule.php @@ -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;