File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes How to increase speed of mail process 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 » Other JSE/JEE APIs
Bookmark "How to increase speed of mail process" Watch "How to increase speed of mail process" New topic
Author

How to increase speed of mail process

sripad_devaraju
Greenhorn

Joined: May 15, 2002
Posts: 13
Hi
I developed an application to send html emails using Java Mail Package. In that application I am storing all my email addresses in a database. So application reads each email address from data base and sends mail to that address. Application is working good.
But application is taking nearly 30 seconds to send mail to each recipient. Can any body tell me how can I improve speed.
Thanks


sripad devaraju
Prashanth menon
Ranch Hand

Joined: Feb 20, 2001
Posts: 65
Dear sripad
If sending mail is slow its probably due to the connectivity or the smtp mail server perofrmance that you use. If there are only a few address I think you can avoid database storage itself. Maybe you can create a property file.
If the content to all the mail is same you can send to multiple recipients the same mail.
Prash
Mirza Galib
Greenhorn

Joined: Jun 02, 2002
Posts: 12
Java Mail service is pretty fast .
try another mail server if u r not getting enough performance. u may use James . Its a pretty nice mail server developed by jakarta . ya the same jakarta that developed Tomcat .
Ur net connection band wirth may also be a bottleneck .


"Hain aur bhee duniya mein sukhanwar bahut acche.<br />Kehte hein ke Galib ka hai andaz-e-bayaan aur."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to increase speed of mail process
 
Similar Threads
How java sends email with html/image content
square bracket in send mail
How java sends email with html/image content
Email impersonating
how to send a mail to yahoo user