Jump to content

Recommended Posts

Posted

Hi all,

Our developer cannot connecto to a mail server from a batch file that he runs. It worked previously & there is no firewall between his box and the mail server.

 

Here is a copy of the error message:

 

javax.mail.SendFailedException: Sending failed;

nested exception is:

javax.mail.MessagingException: Could not connect to SMTP host: 10.10.10.

1, port: 25;

nested exception is:

java.net.SocketException: Software caused connection abort: connect

at javax.mail.Transport.send0(Transport.java:219)

at javax.mail.Transport.send(Transport.java:81)

at Assimilator.main(Assimilator.java:26)

 

He insists its not his bat file or code.

 

Any suggestions would be appreciated!

Posted

try this

 

Problem

You are receiving the exception, "javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;", when trying to use JavaMail® on any release of WebSphere® Application Server V4.0.

 

Cause

WebSphere Application Server is trying to connect to a Simple Mail Transfer Protocol (SMTP) server running under localhost instead of the IP address of the SMTP server machine.

 

Solution

The solution to your problem is to modify the mailTransferProtocol parameter in your JavaMail session. The session is configured within the WebSphere Application Server administrative console. If your value is "SMTP", it should be changed to "smtp".

Posted (edited)
Hi all,

Our developer cannot connecto to a mail server from a batch file that he runs. It worked previously & there is no firewall between his box and the mail server.

 

Here is a copy of the error message:

 

javax.mail.SendFailedException: Sending failed;

nested exception is:

javax.mail.MessagingException: Could not connect to SMTP host: 10.10.10.

1, port: 25;

nested exception is:

java.net.SocketException: Software caused connection abort: connect

at javax.mail.Transport.send0(Transport.java:219)

at javax.mail.Transport.send(Transport.java:81)

at Assimilator.main(Assimilator.java:26)

 

He insists its not his bat file or code.

 

Any suggestions would be appreciated!

 

any authentication required?? or it was just working?? something to do with authentication there is nothing mentioning username or password for connecting to the server...

Edited by rehanahmeds

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...