Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Drupal allows semi-colons to delimit email addresses, but mailWithoutQueue()
expects only commas.
// Create the list of 'To:' recipients.
$torecipients = explode(',', $to);
Comment | File | Size | Author |
---|---|---|---|
#4 | 2671428-4.patch | 656 bytes | NancyDru |
|
Comments
Comment #2
NancyDruAdditionally, it requires a blank before the "<" but that is not required.
Comment #3
NancyDruThis seems to do the trick:
Comment #4
NancyDruHere's a patch.
Comment #5
NancyDruComment #6
DamienMcKennaWould you mind adding a test to cover this scenario?
Comment #7
NancyDruI don't understand the test language, so I cannot.
Comment #8
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commentedComment #9
Chris Matthews CreditAttribution: Chris Matthews commentedThe 3 year old patch to smtp.mail.inc in #4 does not apply to the latest 7.x-1.x-dev snapshot and may be too old to reroll, but I went ahead and tagged the issue accordingly.