This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jmail  RSS feed

 
shrihari
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a simple application that sends mail.
I am using javamail api .after compilation it is giving the following exceptions
1)javax.mail.MessageException:-couldnot connect to smtp host local port 25.
2) java.net.Connectionexception connection refused.
plz anybody tell wat i have to do to run the application fine.
 
Jared Krull
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the SMTP server valid? Check with telnet (There are loads of posts detailing this on this board.
Have you a firewall that is blocking port 25?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!