Public Mail API for sending emails in loop
I have a requirement to disable accounts not logged in for long time and as part of the requirement will need to also send reminder emails.
For the same, I have written a Custom Script using Connect PHP Mail API and trying to send emails to all such accounts meeting the criteria in loop. For testing purpose i have used only one email id, when checked I get email sometimes only once sometimes thrice, while there are around 10 accounts meeting the Criteria. I am setting a boolean value when met the criteria which is getting updated correctly by the script.