Hi,
I really need help. I'm having a very strange problem. I'm trying to send a
email using
JavaMail API. But if I try to connect to a smtp server with
transport.connect(...) I'm
getting this exception:
Could not connect to SMTP host: bsmtp.telekom.at, port: 25, response: -1
Class: class javax.mail.MessagingException
Trace:
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270)
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
When I turn debugging on with "mail.debug" it shows:
DEBUG SMTP: trying to connect to host "bsmtp.telekom.at", port 25, isSSL
false
DEBUG SMTP: EOF: [EOF]
The strange behaviour is that this exception is only thrown after a mail was
sent successfully. Sometimes one mail was sent successfully, then two mails
were
sent successfully, and so on.
Has anybody an idea what could be the reason?
I don't think it's a network issue (connection, firewall, ...) because if so
no mail
would be sent!
Any advice(s)?
Best regards,
Christian Wiesbauer