• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

How to increase speed of mail process

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 .
 
Too many men are afraid of being fools - Henry Ford. Foolish tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic