Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

how to use mail in jsp

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
let me know how to send mail in jsp
thanks
 
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you would probably end up using the javamail API.
------------------
In Gates we trust. Yeah right....
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And the best lace to discuss that is in the "Other Java APIs" forum, so I've moved this post.
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karai,
In order to send mail from a JSP you will probably want to set up at least one Java Bean(maybe more) with JavaMail API and have the JSP(s) pass to the bean(s) to pass the form data(i.e. TO, FROM, CC, BCC, Body of Message, ect).
Depending of how complicated you wanted to make your bean you could hardcode alot of the mail server(SMTP name, ect) right into the bean itself or you could pass the information from the JSP to the bean as well.
If you'd like send me an e-mail and I'll send you a JSP/Java Bean/Java Mail application which does both send and receive.
It's a has pretty good internal documentation so you can understand what each part of the code is doing.
Happy Trails,
Travis Gibson www.travismgibson.com
travis@travismgibson.com

Originally posted by karai baskar:
hi,
let me know how to send mail in jsp
thanks


 
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic