From our hotel management software we have set up emails to go automatically using the task scheduler. We use a function to send the mail and we update that in the schedular. Usually all the emails go through at 11 pm instantly. Now the the mail is getting queued up in the function and the emails go one by one and at some point, hundreds of email goes to just one email id. And since it goes slowly and crosses 12 am, the email scheduled for next day comes into account. We recently did a database merging from 11 databases in to one. We doubt if it has got to do anything with this issue . We send email via SMTP from our server. we have check the exe code and find no issue. Please provide your inputs on what could be the issue. I have attched the auto email code with this.