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.
The code for handling cc and bcc in smtp.mail.inc uses the PHP split() function which is deprecated preventing it from working in Drupal 7. It should use preg_find() instead.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1112828-fixed-deprecated-split-function-0.patch | 881 bytes | MakubeX |
Comments
Comment #1
MakubeX CreditAttribution: MakubeX commentedPatch uploaded. This is my first one, I hope I did it right.
PS. In the issue description above I meant to say it should be preg_split(), not preg_find()... it's late, sorry.
Comment #2
seattlehimay CreditAttribution: seattlehimay commentedI wanted to make sure this was logged, and found your report. FIx worked for me.
Comment #3
Vlad Vinnikov CreditAttribution: Vlad Vinnikov commentedexplode can be used to fix this problem http://stackoverflow.com/questions/7259974/how-to-cc-on-drupal-mail
Comment #4
josesanmartin CreditAttribution: josesanmartin commentedI believe explode() should have a better performance.
Comment #5
josesanmartin CreditAttribution: josesanmartin commentedThis has been fixed on 7.x branch, moving the ticket to 6.x branch.
Comment #6
josesanmartin CreditAttribution: josesanmartin commentedComment #7
josesanmartin CreditAttribution: josesanmartin commentedFixed for D6 as well.