Hi...

I have a software under contruction for a small firm. And it requires email functionality. That is, whenever the users in the main database reaches the payment date, an email will be send to that user as a reminder.
Or, in certain period, the admin needs to send a notification mail to all the users in the main database.

So, how can I incorporate that facility in my main app ?

My present idea is to create a separate app for send the mails. That is, when the admin compose the mail and selects a bunch of users (as recipients) from the database, all the message will be saved to another database (for mailing application) and will start the mailing app. This mailing app will check it's database for any pending emails to be sent, and if there exists any pending mails, it will start sending one by one. After sending each mail, it will remove that from the database.

What's your idea ? Does it sounds ok to you ?

I don't want the user of my main app to know that there exist another program, running in background, sending emails.

Thanks in advance...