• Post Reply Bookmark Topic Watch Topic
  • New Topic

Javamail error  RSS feed

 
Michael Cropper
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have just bought a new computer and got my development environment set up again to continue working on my project but I cannot seem to get JavaMail to work again.

Every time I run the script that used to send emails I get the following error.....

"Cannot send email. javax.mail.MessagingException: Could not connect to SMTP host: smtp1.xxxxxx.co.uk, port: 25, response: -1"

I have added all the relevant files to the classpath, tried turning off firewall that is running but still no luck.

Anyone come across this one before? I cannot seem to find any useful data online for this issue.

Thanks
Michael
 
Kuldip Shetty
Ranch Hand
Posts: 45
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Try telenet the hostname on port 25 to verify if the system is able to connect to the SMTP mail server on port 25.

Also verify if the antivirus program is running as some of them might block port 25.

Kuldip
 
sri ramvaithiyanathan
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this Link
Explained about exceptions and you can get some what clear information about javamail.

Regards,
Sriram.V
 
Michael Cropper
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got this one sorted, it seems that it was a piece of software called "Bullguard" which was causing the issues, which is odd as the free subscription had ended.

Anyways all sorted now.

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!