File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Java Mail in a Web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Java Mail in a Web application" Watch "Java Mail in a Web application" New topic
Author

Java Mail in a Web application

Ashok Kumar Babu
Ranch Hand

Joined: Jul 25, 2006
Posts: 129
Hi Friends,

I have tryed to send mails with Java Mail API and ended in Success, but when i try to send a mail through a Web application(invoked from a Servlet) the mail content and the Attachments are missing. No exceptions and no error, even the mail is sent successfully only the contents are missing.

I have even tried the Spring API, result is the same.

From Standalone Main method- Mails sent with content and Attachments
From Servlet doGet method - Mails sent but no content and no Attachments.

Thanks All


Ashok<br /> <br />SCJP 91%<br />SCWCD 88%
Ashok Kumar Babu
Ranch Hand

Joined: Jul 25, 2006
Posts: 129
I have missed the Activation.jar in my Application which is the root cause of the problem above said. Activation.jar is containing the class file to set Mime type of the Mail.

Ashok
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Mail in a Web application
 
Similar Threads
Blast mail API
Regarding accessing mails by javamail api
Regarding Base64 emails
Throw exception if mail server doesn�t respond
Adding a css template to java mail