- 🇨🇦Canada Liam Morland Ontario, CA 🇨🇦
message is still wrong as the user is not the user it's being sent to
In
message_subscribe
, the code clones the message, sets the clone's owner to the recipient, and sends the clone. SeeDrupal\message_subscribe\Subscribers::sendMessage()
. There may be other use cases where it doesn't work this way.In any case, this is a separate issue from whether the title is appearing properly.
- last update
5 months ago Patch Failed to Apply - 🇵🇱Poland robert.kandzia
Hi! I had the same message in my app. In my case, I send emails to a queue.
I analyzed the classes
MessageNotifierBase
andEmail
code for thesend()
,deliver()
andpostSend()
methods. I reached the place that returns boolean - this is thedeliver()
method. It seems to me that a value should be passed in the$result['result']
parameter, where it returnsTRUE
,FALSE
orNULL
. And there is anisset()
check that returnsTRUE
orFALSE
.In my case
$result['result']
returnsNULL
because the message is queued (not sent immediately). So inpostSend()
is passedNULL
and it does not enter the condition ($result === FALSE
).This should solve the problem of sending emails when using a queue, e.g. queue_mail module.