I have inherited a classic ASP web application that sends out email through a remote mail server. The remote mail server allows a maximum of 5 connections at any one time. Messages exceeding that limit are returned to the web server with the "... too many connections" failure notice. The website is hosted by a hosting vendor in a shared environment.
The website sends mail using a variety of components. Mostly Persits' ASPEMail and CDOSYS, from memory there is some old CDONTS code in there too.
How do I limit the amount of outbound SMTP connections to a maximum of 5 at any one time? Obviously if the limit is reached I want messages to wait and then go out as soon as possible.
Many thanks in advance.