Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.28
Component:
Log
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2021 at 13:52 UTC
Updated:
28 Jan 2022 at 10:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
drcolossos commentedCan confirm that this issue exists with the new symfony_mailer module. But it might be an issue with symfony_mailer
Comment #3
balis_m commentedI can confirm too that this issue exists with the new symfony_mailer module.
I solved it with this patch.
Comment #4
jsacksick commentedThis is weird:
Drupal\Core\Mail\MailManager::doMail()has the following code:Which is the method that's invoked when Commerce calls
Are you decorating the mail manager by any chance? Or is it decorated by a contrib module you're using? Because
$message['to']should always be defined.Comment #5
promesThe only change I made is using a changed copy of postada-order-receipt.html.twig in a custom module.
With patch #3 the mail is arriving.
Comment #6
jsacksick commentedOk, I've tried this myself and this is due to the symfony_mailer_bc module not sending back the "to" key in
Drupal\symfony_mailer_bc\MailManagerReplacement.The attached patch does the trick (similar to #3, with an additional comment).
Comment #7
jsacksick commentedCommitted.
Comment #10
sebastixJust ran into the same problem, patch in comment #6 fixed it.