830 B
830 B
Lambda: sessions/sendnotification
The Laravel admin Send notification action calls mag/sessions/sendnotification with:
session_id— session primary keycommunication_mode—whatsapp,email, orboth
Expected Lambda behaviour
| Mode | WhatsApp (existing) | |
|---|---|---|
whatsapp |
Yes | No |
email |
No | No (handled in Laravel) |
both |
Yes | No (handled in Laravel) |
When communication_mode is email or both, Laravel queues participant emails via email_send and the email:send cron command. Lambda should skip WhatsApp when mode is email only.
Laravel fallback
If Lambda cannot send email, no change is required: Laravel builds the notification body from session details and queues mail for all contacts with a valid email address.