I'm sending hundred of mails through JavaMail but in some !_NEWLINE_!I'm getting an exception: Could not connect to SMTP host
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rojas_Victor
Posted On:   Thursday, April 11, 2002 08:02 AM

By means of procedure I'm sending hundred of mails through JavaMail but in some
I'm getting an exception: javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: Could not connect to SMTP host: 156.XX.XXX.XXX, port: 25

Why generate this error only in some mails???

Re: I'm sending hundred of mails through JavaMail but in some !_NEWLINE_!I'm getting an exception: Could not connect to SMTP host

Posted By:   John_Zukowski  
Posted On:   Thursday, April 11, 2002 01:02 PM

Not sure what server you are using, but as explained somewhere else here, Exchange only permits something like 20 messages to be sent per connection. You would either have to reconfigure exchange to reconnect after every 20 messages.

Re: I'm sending hundred of mails through JavaMail but in some !_NEWLINE_!I'm getting an exception: Could not connect to SMTP host

Posted By:   Tom_Werth  
Posted On:   Thursday, April 11, 2002 09:18 AM

I have had that happen as well. From limited experience, I assumed the SMTP server could only accept finite number of connections at one time. In some respects with a massive number of requests, it is pure luck. Not sure if that is true.
About | Sitemap | Contact