This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JavaMail won't send mail  RSS feed

 
malik ge
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , I am trying to send mail through Javamail, using NetBeans IDE
Every thing seems to work fine, the data which I have entered saves into he file, but the email won't send.
I have added the activation.jar and mail.jar in the libraries folder

index.jsp



AddToEmailListServlet.java (Servlet)



User.java (java class)



UserIO.java (java class)


MailUtilYahoo.java (java class)




display_email_entry.jsp



Capture.PNG
[Thumbnail for Capture.PNG]
 
Paul Clapham
Sheriff
Posts: 22487
43
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a lot of code there, but not much about the problem. Are you getting exceptions thrown? If so, what does the stack trace look like. Are you sure your code is connecting to your chosen SMTP server? You turned on SMTP debugging, so what output are you getting from that?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!