I have a form with a mail template, that needs to be sent to a large number of users on form submission. Can I send the mails without using sleep() method by setting a cron
job or something? I'm planning to sent the mail for a set of users in a loop (50 mails/cron) at a time. Or is there any best way to do this?
On research i found this (Sending mass email using PHP) which suggests cron as a solution(from many answers that found to be suitable for my case),but even if i set crob file , i need this to be execute only after form is submitted . How can i achieve this ?