• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Mail Program  RSS feed

 
Siddhesh Khedekar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,

I have a standalone java program that was sending mails properly. However today its not running I am getting following error -

Could not connect to SMTP host: localhost, port: 25

Any Idea.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16045
88
Android IntelliJ IDE Java Scala Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a mail server running on the computer that you're running your mail program on?

The error means that it cannot connect to the mail server. Make sure your mail server software is running.
 
Siddhesh Khedekar
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jesper de Jong wrote:Do you have a mail server running on the computer that you're running your mail program on?

The error means that it cannot connect to the mail server. Make sure your mail server software is running.




Thanks, got that working
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!