Send mail for other customer
Hello
I have a question, I am sending an email that notifies when a customer is deleted, I send it to the user who is authenticated but how do I also send it to the email address of the customer who was deleted? Thanks

5 Replies
Do you have a form where the authenticated user selects the user they want to delete? If you do, you can use
function (DeleteAction $action, array $data)
and the access $data['user_id']
or however you identify them
Or if this is a table delete action, you can use function ($record)
and $record
will have the data from that row in the tableAdd
Model $record
as argument to the function
Which will resolve the current model which you ran the action onI have this now

Send mail to auth and other mail to all users
Solution
Not what i meant.