Send Email
I'm just learning PHP and I'm trying to experiment with Filament, then I want to try creating an action to send an email, the email configuration is all correct but now I'm feeling confused in the action code, can you help me solve this problem?
The problem I'm experiencing is, why doesn't this action run and doesn't produce any errors or anything, even when I do DD there's no response whatsoever, please help.
8 Replies
Do you receive the email ?
Not yet
Update :
Action::make('send_email')->...
then what's next?
Maybe your mail class SendInvoice implements ShouldQueue and you need to start your jobs queue (horizon or other) ?
I don't use queue and even though I use queue I have done a sync so the queue will run automatically
Need more information to help.
Do you have the confirmation modal on click ?
What is the data array ? You have only these injections on table actions : https://filamentphp.com/docs/3.x/tables/actions#table-action-utility-injection
The table is about invoices list ?
I already have it