Scheduled Reminder fails to send if From Name includes comma
Overview
Including a comma in the From Name for a Scheduled Reminder prevents the reminder from being sent. If you run the cron job manually, you'll see an error message, and no emails will be sent. If you don't run cron manually, you won't know that the emails have not been sent. Enclosing the email From Name in double quotes prevents the issue.
Reproduction steps
- Create new scheduled reminder with the From Name containing a ",".
- Run cron job
Current behaviour
Expected behaviour
Email should be sent.
Environment information
5.28 on Drupal 7.75
Comments
I believe the fix is simply to check the From Name for double quotes and add them if missing. A similar field for contribution page receipts appears to work fine with commas in the From Name, so I suspect this is in place there.