阅读背景:

超时无法使用JavaMail 1.4

来源:互联网 

I'm using JavaMail to send email requests to an SMTP server. I'm setting both "mail.smtp.connectiontimeout" and "mail.smtp.timeout" properties to 5 and 30 seconds respectively and passing both of these to Session.getDefaultInstance(). However, when I go to do the Transport.send(), the timeouts I set appear to be ignored and it's taking around 3:45 to timeout on a Solaris machine. The timeout takes around 1:30 on a Mac. Is this a bug in JavaMail or do I need to set some other properties?I'm using JavaMail to send email requests to an




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: