This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes JavaMail won't send mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JavaMail won Watch "JavaMail won New topic
Author

JavaMail won't send mail

malik ge
Ranch Hand

Joined: May 13, 2011
Posts: 69
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





[Thumbnail for Capture.PNG]

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JavaMail won't send mail
 
Similar Threads
Getting error on calling method belongs to java class.
hide email and password on contactus jsp
how to get utf-8 data from query string in JSP
error of missing values
Getting nulls writing file