Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Vaghik's avatar

Send emails at determined date and time

I have a form, in which user can set date and time. How can I send email in that date and time. I trying to do with laravel scheduler, but can't understand how to run task in determined time, and how to create scheduler from controller

0 likes
2 replies
tykus's avatar

how to create scheduler from controller

Don't. Why not simply have a schedule job run every minute (if that is the appropriate interval) which fetches all records scheduled for the current datetime?

Please or to participate in this conversation.