This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes sending and receiving mail through jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "sending and receiving mail through jsp" Watch "sending and receiving mail through jsp" New topic
Author

sending and receiving mail through jsp

manash saikia
Greenhorn

Joined: Oct 14, 2004
Posts: 1
hello sir,

i am new to jsp.right now i am making a small project that will be basically a mail server. here in this project i am using student login and password as a means of authentication.when the user is authenticated then a html page will be vied which will contain links to pages containg mail box,all other things useful for curriculum.the student can mail his queries to the teacher on relevent subjects and accordingly the teacher will reply to it.i am thinking of using distributrd database system.so plz suggest me
regarding SMTP protocol designing through jsp.

waiting for ur reply,

thanking u

manash
final year ,IT
MANIT,bhopal
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Are you sending "real" email... i.e. are actual email messages being sent between systems and can these messages be pulled up in any email application? If so you need to look into JavaMail. This API is a pretty simple way of dealing with SMTP through Java.

Or are you just following the "pattern" of email within your application? i.e. the messages are formatted similiar to emails (sender, receiver, message body, attachments, etc.) but messages are exchanged only between users of your application, and must be viewed only through your application. If this is the case you just need some JavaBeans to model the structure of the messages and use whatever technology you want to save the information contained in the messages (database, XML files, flat files, etc.). But you don't have to worry at all about something like SMTP because the messages aren't actual email messages and don't need to be handled outside your application.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
 
subject: sending and receiving mail through jsp
 
Similar Threads
Designing with Interface or Abstract class
Develop AutoReply
UML Generalization Problem
specifying result path in struts.xml
is there any free web hosting for EJB,JSP,Oracle project with weblogic server?