• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java mail

 
prajapatisagar Sagar
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to send java mail but it takes 1 minute for sending one mail what is the problem that is making it so slow
 
sourabh girdhar
Ranch Hand
Posts: 71
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you trying to attach big files in mail ?
Where is the SMTP server located. It could be because submission of mail to SMTP server taking long time.
 
prajapatisagar Sagar
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sourabh girdhar wrote:Are you trying to attach big files in mail ?
Where is the SMTP server located. It could be because submission of mail to SMTP server taking long time.


No there is so such big files i am sending email with html tags within it ,the transpond.send takes like 30 secs for sending 1 mail and i have to send email to around 500 mail its taking too much time and my session exipires around after 30 mails
 
sourabh girdhar
Ranch Hand
Posts: 71
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could not say anything for sure. 30 seconds for a mail is still ok . I am used to send mail to large number of users but my number of mails is limited, So I never noted the time.
If you want to send 500 mails , I should say prefer sending it by Unix. In any case that will work fast.
Let me know if you find some other solution.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While 30 seconds does indeed sound long, you might be able to speed it up by having 10 threads send emails in parallel - something like this is I/O-bound, not CPU-bound, so you should achieve a nice speedup.
 
prajapatisagar Sagar
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for responding to my post
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic