Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

send E-mail in background

 
ramji srinivasan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a form which has a "Send Mail" checkbox option which sends a mail to the selected members after saving a particular record...

my problem is sending mail option slows down the record saving process...is there anyway we can send the e-mail in background after saving the record...how can we seperate the process...

please suggest a suitable solution..
 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start a seperate thread.
 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Launch the email sending class with a seperate thread.
 
sudhakar Tadepalli
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What if the user wants a confirmation about sent email ? can we get back to the user if we use another thread ?

-Sudhakar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic