File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes need advice to send emails from a web application (2 email / second) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "need advice to send emails from a web application (2 email / second)" Watch "need advice to send emails from a web application (2 email / second)" New topic
Author

need advice to send emails from a web application (2 email / second)

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Thank you for reading my post.
I have a web application which is going to deploy on Tomcat
It has some email sending , for example to notify users.
There would be about 2 email/second in peak time.
I want to know ,
-What is best practive to send email from a web application running on Tomcat 5.5.*
-is there any library / frameworks which could automatically save emails and send them later , or i should
implement something myself ?


Thank you
Jason Liao
Ranch Hand

Joined: Jun 17, 2005
Posts: 59
You should have Email(STMP) server first, and then use java mail library (jmail?) in you web application.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61196
    
  66

As Jason pointed out, you need an SMTP server set up somewhere to handle mail serving. This is outside the scope of the web application.

Within any Java application, web or otherwise, you would use the JavaMail API to handle sending the email messages to the SMTP server.

As such, I'm moving this to the Other Java APIs forum where JavaMail is discussed.
[ January 20, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need advice to send emails from a web application (2 email / second)