In my custom script I need to send emails to above 50k users
So I just did a for loop and use the function email_to_user to send these emails. It seems it sends only about 5000 emails.
Is there something I can do about it? Do I have to use the cron compulsorily for such a situation ? Any pointers are much appreciated