• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Send e-mail from servlet?

 
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to design my servlet to work as follows:
1)The user key in some value in browser
2)The servlet uses the keyed value to get data from database and then formats a PDF file (in memory)
3)The servlet sends this PDF to a number of people (e-mail address pre-stored)
4)In the meantime, the servlet notifies the browser user.
How do I do the third step: e-mail a file (in memory) to somebody?
Thanks.
Bruce
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is really a pretty big question, and I'll answer it by pointing you in the right direction: Javamail. Read up on it, because sending mail from a servlet involves setting up an SMTP server among other things, but there is of course tons of information available on how to do it.
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Dave.
I am reading JavaMail. Just wondering if anybody knows some utilities that will do then trick.
Bruce
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic