Hi,
It is easier to read from code. So, please share your code (or part of it).
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I am sending mail notifications which are all logged to a table.
When the mail request is processed. I write a record to the table and set the status as queued.
When the notification is actually sent, I want to update the status to reflect this.
I'm thinking that I use the NotificationSent event and create a listener which does the update.
The result of this is that I need to pass the id of the record to update (so that the listener knows which record to update). Can anyone suggest a better way? I feel that this is a common problem which maybe has an elegant solution.
Cheers,
Mick
Please or to participate in this conversation.