Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should have Email(STMP) server first, and then use java mail library (jmail?) in you web application.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic