Hello everybody.

I'm developing an application and i need to send emails after processing some info, that info it's stored in a mysql table and i need to check that info every 1 min, asking for new records with sent status in 0 for unsent messages, i only need to know what's the better, faster and optimized way to send several emails.

I wrote a java program and works fine, but i'm breaking my head thinking in a better way to do it.

maybe cron task?

thank you all.