I am sending mails with JavaMail. My code works fine while sending small quantity of emails from our vps but when sending in loop then start throwing the following errors:
1) javax.mail.MessagingException: Could not connect to SMTP host: mail.mydomain.com, port: 25, response: -1
2) javax.mail.MessagingException: Could not connect to SMTP host: mail.mydomain.com, port: 25;
nested exception is:
java.net.ConnectException: Connection refused
Is there problem of number of connections?
My OS is centOS Enterprise Linux 5.x and lxAdmin installed with Qmail
Thanks & best regards
Last edited by Raakh; 06-09-2009 at 07:11 AM.