wood burning stoves 2.0
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "sending and receiving mail through jsp" Watch "sending and receiving mail through jsp" New topic

sending and receiving mail through jsp

manash saikia

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

final year ,IT
Nathan Pruett

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.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link: http://aspose.com/file-tools
subject: sending and receiving mail through jsp
It's not a secret anymore!