We have a Windows Service to check if certain conditions are met, we will send an email to the customer. We will have about 50 emails to send everyday. My question is, is it better to send emails out individually (i.e. every time the condition is met, triggers sendmail function) or queue all the emails and send in a batch? Is it better to send in a batch because of performance reasons? But we only send about 50 emails a day so it doesn’t matter too much? How would you queue the emails if the emails should be send in a batch?
Many Thanks
Generally the reason for batching multiple e-mails into a single e-mail is so as not to irritate the recipient, rather than for performance reasons. 50 e-mails throughout the day can be very annoying and will quickly cause the recipient to “tune out,” whereas a single e-mail containing all pertinent notifications may be easier to digest.
As to how to re-queue the e-mails, it would be best if you could modify the service itself to store the outgoing e-mails in a file or buffer and only send the contents of that file or buffer once a certain threshold has been reached – be that a time threshold or a size threshold.